Commit b5549af1 authored by Robert Bradshaw's avatar Robert Bradshaw

Lower level for old property syntax use.

parent 87dc8089
...@@ -1295,9 +1295,9 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations): ...@@ -1295,9 +1295,9 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations):
return node return node
def visit_PropertyNode(self, node): def visit_PropertyNode(self, node):
# Suppress warning for our code until we can convert all our uses over. # Low-level warning for other code until we can convert all our uses over.
if isinstance(node.pos[0], str) or True: level = 2 if isinstance(node.pos[0], str) else 0
warning(node.pos, "'property %s:' syntax is deprecated, use '@property'" % node.name, 2) warning(node.pos, "'property %s:' syntax is deprecated, use '@property'" % node.name, level)
return node return node
def visit_DefNode(self, node): def visit_DefNode(self, node):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment