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
3f76e08f
Commit
3f76e08f
authored
Oct 05, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some style issues
parent
12be176b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
Cython/Compiler/AnalysedTreeTransforms.py
Cython/Compiler/AnalysedTreeTransforms.py
+2
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-1
Cython/Utils.py
Cython/Utils.py
+1
-1
No files found.
Cython/Compiler/AnalysedTreeTransforms.py
View file @
3f76e08f
from
Cython.Compiler.Visitor
import
VisitorTransform
,
ScopeTrackingTransform
,
TreeVisitor
from
Nodes
import
StatListNode
,
SingleAssignmentNode
,
CFuncDefNode
from
Nodes
import
StatListNode
,
SingleAssignmentNode
,
CFuncDefNode
,
DefNode
from
ExprNodes
import
DictNode
,
DictItemNode
,
NameNode
,
UnicodeNode
,
NoneNode
,
\
ExprNode
,
AttributeNode
,
ModuleRefNode
,
DocstringRefNode
from
PyrexTypes
import
py_object_type
...
...
@@ -63,9 +63,7 @@ class AutoTestDictTransform(ScopeTrackingTransform):
return
node
def
visit_FuncDefNode
(
self
,
node
):
import
Nodes
if
not
node
.
doc
or
(
isinstance
(
node
,
Nodes
.
DefNode
)
and
node
.
fused_py_func
):
if
not
node
.
doc
or
(
isinstance
(
node
,
DefNode
)
and
node
.
fused_py_func
):
return
node
if
not
self
.
cdef_docstrings
:
if
isinstance
(
node
,
CFuncDefNode
)
and
not
node
.
py_func
:
...
...
Cython/Compiler/ExprNodes.py
View file @
3f76e08f
...
...
@@ -2763,7 +2763,8 @@ class IndexNode(ExprNode):
break
else
:
assert
False
# This is a bug
raise
InternalError
(
"Couldn't find the right signature"
)
gil_message
=
"Indexing Python object"
...
...
Cython/Utils.py
View file @
3f76e08f
...
...
@@ -234,4 +234,4 @@ except NameError:
for
item
in
items
:
if
item
:
return
True
return
False
\ No newline at end of file
return
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