mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +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.mdit_to_docutils.base import make_document
|
||||
|
||||
# Python2 compatibility
|
||||
try:
|
||||
FileNotFoundError
|
||||
except NameError:
|
||||
FileNotFoundError = IOError
|
||||
|
||||
|
||||
class Relinker(SparseNodeVisitor):
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue