Commit 3f76e08f authored by Mark Florisson's avatar Mark Florisson

Fix some style issues

parent 12be176b
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:
......
......@@ -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"
......
......@@ -234,4 +234,4 @@ except NameError:
for item in items:
if item:
return True
return False
\ No newline at end of file
return False
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