mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 18:06:31 +02:00
[docs] python2 compatibility
This commit is contained in:
parent
b2db98f128
commit
f8406aa6da
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,12 @@ from docutils.parsers.rst import Directive
|
||||||
from myst_parser.docutils_ import Parser
|
from myst_parser.docutils_ import Parser
|
||||||
from myst_parser.mdit_to_docutils.base import make_document
|
from myst_parser.mdit_to_docutils.base import make_document
|
||||||
|
|
||||||
|
# Python2 compatibility
|
||||||
|
try:
|
||||||
|
FileNotFoundError
|
||||||
|
except NameError:
|
||||||
|
FileNotFoundError = IOError
|
||||||
|
|
||||||
|
|
||||||
class Relinker(SparseNodeVisitor):
|
class Relinker(SparseNodeVisitor):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue