mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-02 01:17:20 +02:00
Remove workarounds and backports for Python 2 support
In particular: - In common/, remove the backport of weakref.WeakMethod - In docs/ and ui/, use the standard FileNotFoundError class - Use built-in open() instead of io.open(), and stop importing io - In core/stats.py, use the standard implementation of xml.etree instead of the C one
This commit is contained in:
parent
635f85e7fd
commit
8bef398bed
9 changed files with 10 additions and 88 deletions
|
@ -17,12 +17,6 @@ from docutils.nodes import SparseNodeVisitor
|
|||
from docutils.parsers.rst import Directive
|
||||
from utils import md_to_docutils, get_link_key
|
||||
|
||||
# Python2 compatibility
|
||||
try:
|
||||
FileNotFoundError
|
||||
except NameError:
|
||||
FileNotFoundError = IOError
|
||||
|
||||
|
||||
class Relinker(SparseNodeVisitor):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue