[pypy-commit] pypy default: Do the imports only if the config option is set.
arigo
noreply at buildbot.pypy.org
Wed Nov 2 17:18:16 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r48664:d2cbfaf3d3a1
Date: 2011-11-02 17:04 +0100
http://bitbucket.org/pypy/pypy/changeset/d2cbfaf3d3a1/
Log: Do the imports only if the config option is set.
diff --git a/pypy/objspace/std/tupletype.py b/pypy/objspace/std/tupletype.py
--- a/pypy/objspace/std/tupletype.py
+++ b/pypy/objspace/std/tupletype.py
@@ -5,14 +5,14 @@
def wraptuple(space, list_w):
from pypy.objspace.std.tupleobject import W_TupleObject
- from pypy.objspace.std.smalltupleobject import W_SmallTupleObject2
- from pypy.objspace.std.smalltupleobject import W_SmallTupleObject3
- from pypy.objspace.std.smalltupleobject import W_SmallTupleObject4
- from pypy.objspace.std.smalltupleobject import W_SmallTupleObject5
- from pypy.objspace.std.smalltupleobject import W_SmallTupleObject6
- from pypy.objspace.std.smalltupleobject import W_SmallTupleObject7
- from pypy.objspace.std.smalltupleobject import W_SmallTupleObject8
if space.config.objspace.std.withsmalltuple:
+ from pypy.objspace.std.smalltupleobject import W_SmallTupleObject2
+ from pypy.objspace.std.smalltupleobject import W_SmallTupleObject3
+ from pypy.objspace.std.smalltupleobject import W_SmallTupleObject4
+ from pypy.objspace.std.smalltupleobject import W_SmallTupleObject5
+ from pypy.objspace.std.smalltupleobject import W_SmallTupleObject6
+ from pypy.objspace.std.smalltupleobject import W_SmallTupleObject7
+ from pypy.objspace.std.smalltupleobject import W_SmallTupleObject8
if len(list_w) == 2:
return W_SmallTupleObject2(list_w)
if len(list_w) == 3:
More information about the pypy-commit
mailing list