mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
Remove all references to pyCompatibility
- "pyCompatibility.basestring" are replaced by standard Python3 "str" - "Sequence" and "Iterable" from "collections" are now directly imported with "collections.abc"
This commit is contained in:
parent
d2c707f6fa
commit
635f85e7fd
10 changed files with 30 additions and 56 deletions
|
@ -23,7 +23,6 @@ except:
|
|||
|
||||
from meshroom.core.submitter import BaseSubmitter
|
||||
from . import desc
|
||||
from . import pyCompatibility
|
||||
|
||||
# Setup logging
|
||||
logging.basicConfig(format='[%(asctime)s][%(levelname)s] %(message)s', level=logging.INFO)
|
||||
|
@ -150,7 +149,7 @@ class Version(object):
|
|||
self.components = tuple()
|
||||
elif len(args) == 1:
|
||||
versionName = args[0]
|
||||
if isinstance(versionName, pyCompatibility.basestring):
|
||||
if isinstance(versionName, str):
|
||||
self.components = Version.toComponents(versionName)
|
||||
elif isinstance(versionName, (list, tuple)):
|
||||
self.components = tuple([int(v) for v in versionName])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue