Skip to content

Commit

Permalink
Make symbolator_sphinx work with newer sphinx verions
Browse files Browse the repository at this point in the history
ENOENT, EPIPE, EINVAL no longer exist in sphinx.util.osutil (since 4.0.0).
However taking them from the official source in errno seems more correct anyway.
  • Loading branch information
LukasVik committed Jan 13, 2022
1 parent 9bb2dbf commit 852ccbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion symbolator_sphinx/symbolator_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import re
import codecs
import posixpath
from errno import ENOENT, EPIPE, EINVAL
from os import path
from subprocess import Popen, PIPE
from hashlib import sha1
Expand All @@ -30,7 +31,7 @@
from sphinx.locale import _, __
from sphinx.util import logging
from sphinx.util.i18n import search_image_for_language
from sphinx.util.osutil import ensuredir, ENOENT, EPIPE, EINVAL
from sphinx.util.osutil import ensuredir

if False:
# For type annotation
Expand Down

0 comments on commit 852ccbe

Please sign in to comment.