Skip to content

Commit

Permalink
Fix import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
michilu committed Sep 19, 2012
1 parent 756d082 commit a66cea5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions functools32/__init__.py
@@ -0,0 +1 @@
from .functools32 import *
File renamed without changes.
4 changes: 2 additions & 2 deletions functools32.py → functools32/functools32.py
Expand Up @@ -13,13 +13,13 @@

from _functools import partial, reduce
from collections import MutableMapping, namedtuple
from reprlib32 import recursive_repr as _recursive_repr
from .reprlib32 import recursive_repr as _recursive_repr
from weakref import proxy as _proxy
import sys as _sys
try:
from _thread import allocate_lock as Lock
except:
from _dummy_thread32 import allocate_lock as Lock
from ._dummy_thread32 import allocate_lock as Lock

################################################################################
### OrderedDict
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -23,7 +23,7 @@ def main():
maintainer_email='djmchl@gmail.com',
url='https://github.com/MiCHiLU/python-functools32',

py_modules=['functools32'],
packages=['functools32'],
)


Expand Down
6 changes: 3 additions & 3 deletions test_functools32.py
Expand Up @@ -6,7 +6,7 @@
from weakref import proxy
import pickle
from random import choice
from functools32 import OrderedDict
from functools32.functools32 import OrderedDict

@staticmethod
def PythonPartial(func, *args, **keywords):
Expand Down Expand Up @@ -617,10 +617,10 @@ def fib(n):
self.assertEqual([fib(n) for n in range(16)],
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610])
self.assertEqual(fib.cache_info(),
functools._CacheInfo(hits=28, misses=16, maxsize=None, currsize=16))
functools.functools32._CacheInfo(hits=28, misses=16, maxsize=None, currsize=16))
fib.cache_clear()
self.assertEqual(fib.cache_info(),
functools._CacheInfo(hits=0, misses=0, maxsize=None, currsize=0))
functools.functools32._CacheInfo(hits=0, misses=0, maxsize=None, currsize=0))

def test_lru_with_exceptions(self):
# Verify that user_function exceptions get passed through without
Expand Down

0 comments on commit a66cea5

Please sign in to comment.