Commit 4f733077 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot

Deprecate the 'property …:' syntax, as suggested in #462.

parent d3d729e3
......@@ -1294,6 +1294,10 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations):
self._properties.pop()
return node
def visit_PropertyNode(self, node):
warning(node.pos, "'property %s:' syntax is deprecated, use '@property'" % node.name, 2)
return node
def visit_DefNode(self, node):
scope_type = self.scope_type
node = self.visit_FuncDefNode(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