Author: Armin Rigo <[email protected]>
Branch:
Changeset: r58565:51bf893b4bd6
Date: 2012-10-29 11:06 +0100
http://bitbucket.org/pypy/pypy/changeset/51bf893b4bd6/
Log: Don't import 'collections' but only '_abcoll' from here. collections
requires itertools.
diff --git a/pypy/module/cpyext/dictobject.py b/pypy/module/cpyext/dictobject.py
--- a/pypy/module/cpyext/dictobject.py
+++ b/pypy/module/cpyext/dictobject.py
@@ -198,8 +198,8 @@
@specialize.memo()
def make_frozendict(space):
return space.appexec([], '''():
- import collections
- class FrozenDict(collections.Mapping):
+ import _abcoll
+ class FrozenDict(_abcoll.Mapping):
def __init__(self, *args, **kwargs):
self._d = dict(*args, **kwargs)
def __iter__(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit