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):
def __iter__(self):
return iter(self.data)
import _abcoll
_abcoll.MutableMapping.register(IterableUserDict)
# Pyston change: disable using the _abcoll module for now.
# import _abcoll
# _abcoll.MutableMapping.register(IterableUserDict)
class DictMixin:
......
# Copyright 2007 Google, Inc. All Rights Reserved.
# 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.
DON'T USE THIS MODULE DIRECTLY! The classes here should be imported
......
__all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
# For bootstrapping reasons, the collection ABCs are defined in _abcoll.py.
# They should however be considered an integral part of collections.py.
from _abcoll import *
import _abcoll
__all__ += _abcoll.__all__
# Pyston change: disable using the _abcoll module for now.
# from _abcoll import *
# import _abcoll
# __all__ += _abcoll.__all__
from _collections import deque, defaultdict
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