mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-28 08:26:32 +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
|
@ -348,7 +348,7 @@ class TaskManager(BaseObject):
|
|||
raise ValueError("Argument 'context' must be: 'COMPUTATION' or 'SUBMITTING'")
|
||||
|
||||
if len(ready) + len(computed) != len(toNodes):
|
||||
del toNodes[:] # for python 2 compatibility, else use: toNodes.clear()
|
||||
toNodes.clear()
|
||||
toNodes.extend(ready)
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue