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 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, \ from ExprNodes import DictNode, DictItemNode, NameNode, UnicodeNode, NoneNode, \
ExprNode, AttributeNode, ModuleRefNode, DocstringRefNode ExprNode, AttributeNode, ModuleRefNode, DocstringRefNode
from PyrexTypes import py_object_type from PyrexTypes import py_object_type
...@@ -63,9 +63,7 @@ class AutoTestDictTransform(ScopeTrackingTransform): ...@@ -63,9 +63,7 @@ class AutoTestDictTransform(ScopeTrackingTransform):
return node return node
def visit_FuncDefNode(self, node): def visit_FuncDefNode(self, node):
import Nodes if not node.doc or (isinstance(node, DefNode) and node.fused_py_func):
if not node.doc or (isinstance(node, Nodes.DefNode) and
node.fused_py_func):
return node return node
if not self.cdef_docstrings: if not self.cdef_docstrings:
if isinstance(node, CFuncDefNode) and not node.py_func: if isinstance(node, CFuncDefNode) and not node.py_func:
......
...@@ -2763,7 +2763,8 @@ class IndexNode(ExprNode): ...@@ -2763,7 +2763,8 @@ class IndexNode(ExprNode):
break break
else: else:
assert False # This is a bug
raise InternalError("Couldn't find the right signature")
gil_message = "Indexing Python object" gil_message = "Indexing Python object"
......
...@@ -234,4 +234,4 @@ except NameError: ...@@ -234,4 +234,4 @@ except NameError:
for item in items: for item in items:
if item: if item:
return True return True
return False return False
\ No newline at end of file
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