Commit 10ef1409 authored by Robert Bradshaw's avatar Robert Bradshaw

Don't warn for uses of old property syntax in utility code.

parent 2f623e4f
......@@ -1295,7 +1295,9 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations):
return node
def visit_PropertyNode(self, node):
warning(node.pos, "'property %s:' syntax is deprecated, use '@property'" % node.name, 2)
# Suppress warning for our code until we can convert all our uses over.
if isinstance(node.pos[0], str) or True:
warning(node.pos, "'property %s:' syntax is deprecated, use '@property'" % node.name, 2)
return 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