Commit f1552217 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Disable using the _abcoll stdlib for now

As much as I don't like modifying the standard libraries,
removing the dependence on this particular one helps a lot,
since it (indirectly) imports weakref which will take a while
for us to support.
parent 28861153
...@@ -80,8 +80,9 @@ class IterableUserDict(UserDict): ...@@ -80,8 +80,9 @@ class IterableUserDict(UserDict):
def __iter__(self): def __iter__(self):
return iter(self.data) return iter(self.data)
import _abcoll # Pyston change: disable using the _abcoll module for now.
_abcoll.MutableMapping.register(IterableUserDict) # import _abcoll
# _abcoll.MutableMapping.register(IterableUserDict)
class DictMixin: class DictMixin:
......
# Copyright 2007 Google, Inc. All Rights Reserved. # Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement. # Licensed to PSF under a Contributor Agreement.
# Pyston change: disable using the _abcoll module for now.
raise NotImplementedError()
"""Abstract Base Classes (ABCs) for collections, according to PEP 3119. """Abstract Base Classes (ABCs) for collections, according to PEP 3119.
DON'T USE THIS MODULE DIRECTLY! The classes here should be imported DON'T USE THIS MODULE DIRECTLY! The classes here should be imported
......
__all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict'] __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
# For bootstrapping reasons, the collection ABCs are defined in _abcoll.py. # For bootstrapping reasons, the collection ABCs are defined in _abcoll.py.
# They should however be considered an integral part of collections.py. # They should however be considered an integral part of collections.py.
from _abcoll import * # Pyston change: disable using the _abcoll module for now.
import _abcoll # from _abcoll import *
__all__ += _abcoll.__all__ # import _abcoll
# __all__ += _abcoll.__all__
from _collections import deque, defaultdict from _collections import deque, defaultdict
from operator import itemgetter as _itemgetter, eq as _eq from operator import itemgetter as _itemgetter, eq as _eq
......
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