Author: Ronan Lamy <[email protected]>
Branch: singledispatch
Changeset: r69170:85049837000b
Date: 2014-02-16 02:34 +0000
http://bitbucket.org/pypy/pypy/changeset/85049837000b/

Log:    make singledispatch importable

diff --git a/rpython/tool/singledispatch/__init__.py 
b/rpython/tool/singledispatch/__init__.py
new file mode 100644
diff --git a/rpython/tool/singledispatch/singledispatch.py 
b/rpython/tool/singledispatch/singledispatch.py
--- a/rpython/tool/singledispatch/singledispatch.py
+++ b/rpython/tool/singledispatch/singledispatch.py
@@ -10,7 +10,7 @@
 
 from functools import update_wrapper
 from weakref import WeakKeyDictionary
-from singledispatch_helpers import MappingProxyType, get_cache_token
+from .singledispatch_helpers import MappingProxyType, get_cache_token
 
 
################################################################################
 ### singledispatch() - single-dispatch generic function decorator
diff --git a/rpython/tool/singledispatch/test_singledispatch.py 
b/rpython/tool/singledispatch/test_singledispatch.py
--- a/rpython/tool/singledispatch/test_singledispatch.py
+++ b/rpython/tool/singledispatch/test_singledispatch.py
@@ -9,17 +9,17 @@
 import collections
 import decimal
 from itertools import permutations
-import singledispatch as functools
-from singledispatch_helpers import Support
+from . import singledispatch as functools
+from .singledispatch_helpers import Support
 try:
     from collections import ChainMap
 except ImportError:
-    from singledispatch_helpers import ChainMap
+    from .singledispatch_helpers import ChainMap
     collections.ChainMap = ChainMap
 try:
     from collections import OrderedDict
 except ImportError:
-    from singledispatch_helpers import OrderedDict
+    from .singledispatch_helpers import OrderedDict
     collections.OrderedDict = OrderedDict
 try:
     import unittest2 as unittest
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to