Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
b5549af1
Commit
b5549af1
authored
Mar 18, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lower level for old property syntax use.
parent
87dc8089
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+3
-3
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
b5549af1
...
...
@@ -1295,9 +1295,9 @@ class DecoratorTransform(ScopeTrackingTransform, SkipDeclarations):
return
node
def
visit_PropertyNode
(
self
,
node
):
#
Suppress warning for ou
r 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
)
#
Low-level warning for othe
r code until we can convert all our uses over.
level
=
2
if
isinstance
(
node
.
pos
[
0
],
str
)
else
0
warning
(
node
.
pos
,
"'property %s:' syntax is deprecated, use '@property'"
%
node
.
name
,
level
)
return
node
def
visit_DefNode
(
self
,
node
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment