added functool mixins

This commit is contained in:
David Halter
2012-09-04 18:15:33 +02:00
parent b111c56b06
commit 268196086b
3 changed files with 41 additions and 1 deletions

View File

@@ -177,7 +177,7 @@ class Parser(CachedModule):
return {}
else:
mixin_dct = process_code(f.read())
if is_py3k():
if is_py3k() and self.name == _Builtin.name:
# in the case of Py3k xrange is now range
mixin_dct['range'] = mixin_dct['xrange']
return mixin_dct