mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
[core] core: use pyCompatibility basestring instead of str
This commit is contained in:
parent
94cba653d5
commit
fa631d8e7a
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ from enum import Enum
|
|||
import meshroom
|
||||
import meshroom.core
|
||||
from meshroom.common import BaseObject, DictModel, Slot, Signal, Property
|
||||
from meshroom.core import Version
|
||||
from meshroom.core import Version, pyCompatibility
|
||||
from meshroom.core.attribute import Attribute, ListAttribute
|
||||
from meshroom.core.exception import StopGraphVisit, StopBranchVisit
|
||||
from meshroom.core.node import nodeFactory, Status, Node, CompatibilityNode
|
||||
|
@ -191,7 +191,7 @@ class Graph(BaseObject):
|
|||
Returns:
|
||||
tuple of Graph.IO.Features: the list of supported features
|
||||
"""
|
||||
if isinstance(fileVersion, str):
|
||||
if isinstance(fileVersion, pyCompatibility.basestring):
|
||||
fileVersion = Version(fileVersion)
|
||||
|
||||
features = [Graph.IO.Features.Graph]
|
||||
|
|
Loading…
Add table
Reference in a new issue