mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-12 00:26:52 +02:00
Fix compatibility with Python 3
- Import "collections" correctly depending on the version of Python - Fix regex that raised deprecation warnings in Python 3
This commit is contained in:
parent
8eaef0b367
commit
f2a904ac9b
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ def attributeFactory(description, value, isOutput, node, root=None, parent=None)
|
|||
class Attribute(BaseObject):
|
||||
"""
|
||||
"""
|
||||
stringIsLinkRe = re.compile('^\{[A-Za-z]+[A-Za-z0-9_.]*\}$')
|
||||
stringIsLinkRe = re.compile(r'^\{[A-Za-z]+[A-Za-z0-9_.]*\}$')
|
||||
|
||||
def __init__(self, node, attributeDesc, isOutput, root=None, parent=None):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue