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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
35e28a5e
Commit
35e28a5e
authored
Oct 20, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blacklist __nonzero__ from autotestdict
parent
ac5cf0b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Cython/Compiler/AnalysedTreeTransforms.py
Cython/Compiler/AnalysedTreeTransforms.py
+1
-1
tests/run/autotestdict.pyx
tests/run/autotestdict.pyx
+7
-0
No files found.
Cython/Compiler/AnalysedTreeTransforms.py
View file @
35e28a5e
...
@@ -10,7 +10,7 @@ import Naming
...
@@ -10,7 +10,7 @@ import Naming
class
AutoTestDictTransform
(
ScopeTrackingTransform
):
class
AutoTestDictTransform
(
ScopeTrackingTransform
):
# Handles autotestdict directive
# Handles autotestdict directive
blacklist
=
[
'__cinit__'
,
'__dealloc__'
,
'__richcmp__'
]
blacklist
=
[
'__cinit__'
,
'__dealloc__'
,
'__richcmp__'
,
'__nonzero__'
]
def
visit_ModuleNode
(
self
,
node
):
def
visit_ModuleNode
(
self
,
node
):
self
.
scope_type
=
'module'
self
.
scope_type
=
'module'
...
...
tests/run/autotestdict.pyx
View file @
35e28a5e
...
@@ -102,5 +102,12 @@ cdef class MyCdefClass:
...
@@ -102,5 +102,12 @@ cdef class MyCdefClass:
False
False
"""
"""
def
__nonzero__
(
self
):
"""
Should not be included, as it can't be looked up with getattr in Py 3.1
>>> True
False
"""
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