Commits

Andriy Kornatskyy committed 49a152d

Fixed import conflict with collections module

Comments (0)

Files changed (3)

 # built documents.
 #
 # The short X.Y version.
-version = '0.1'
+version = '0.1.1'
 # The full version, including alpha/beta/rc tags.
-release = '0.1'
+release = '0.1.1'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 
 setup(
     name='wheezy.core',
-    version='0.1',
+    version='0.1.1',
     description='A lightweight core library',
     long_description=README,
     url='https://bitbucket.org/akorn/wheezy.core',

src/wheezy/core/comp.py

 
 
 try:  # pragma: nocover
-    from collections import defaultdict
-except ImportError:  # pragma: nocover
+    #from collections import defaultdict
+    defaultdict = __import__('collections', None, None,
+            ['defaultdict']).defaultdict
+except AttributeError:  # pragma: nocover
 
     class defaultdict(dict):