Commit 84238b48 authored by Stefan Behnel's avatar Stefan Behnel

tiny cleanup, fix #163

parent 780c73d0
......@@ -101,8 +101,7 @@ class IterationTransform(Visitor.VisitorTransform):
isinstance(function, ExprNodes.NameNode) and \
function.entry.is_builtin and \
function.name in ('range', 'xrange'):
return self._transform_range_iteration(
node, iterator)
return self._transform_range_iteration(node, iterator)
return node
......@@ -453,6 +452,8 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
def _find_handler(self, call_type, function):
if not function.type.is_builtin_type:
return None
if not isinstance(function, ExprNodes.NameNode):
return None
handler = getattr(self, '_handle_%s_%s' % (call_type, function.name), None)
if handler is None:
handler = getattr(self, '_handle_any_%s' % function.name, None)
......
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