Skip to content

Commit

Permalink
Merge pull request #32 from krmarien/master
Browse files Browse the repository at this point in the history
Fix removed ENOENT of sphinx.util.osutil in sphinx 4
  • Loading branch information
bavovanachte authored May 11, 2021
2 parents 1d390b0 + 240f883 commit 1d4c92d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
python: [3.6, 3.7, 3.8]
sphinx: [1.*, 2.*, 3.*]
sphinx: [1.*, 2.*, 3.*, 4.*]
steps:
- uses: actions/checkout@v2
- name: Setup Python
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
strategy:
matrix:
python: [3.6, 3.7, 3.8]
sphinx: [ 1.*, 2.*, 3.*]
sphinx: [ 1.*, 2.*, 3.*, 4.*]
steps:
- uses: actions/checkout@v2
- name: Setup Python
Expand Down
8 changes: 4 additions & 4 deletions sphinxcontrib/wavedrom_render_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
import cairosvg
from wavedrom import render
from sphinx.errors import SphinxError
import errno

# This exception was not always available..
try:
from json.decoder import JSONDecodeError
except ImportError:
JSONDecodeError = ValueError

from sphinx.util.osutil import (
ensuredir,
ENOENT,
)
from sphinx.util.osutil import ensuredir

ENOENT = getattr(errno, 'ENOENT', 0)

def determine_format(supported):
"""
Expand Down

0 comments on commit 1d4c92d

Please sign in to comment.