Merge branch '3.2.3-1'
This commit is contained in:
commit
8158f61bd7
|
@ -1,3 +1,4 @@
|
|||
MANIFEST
|
||||
build
|
||||
dist
|
||||
tags
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
------------------
|
||||
2012-09-19 3.2.3-1
|
||||
------------------
|
||||
|
||||
- Fix import errors
|
||||
|
||||
----------------
|
||||
2012-09-18 3.2.3
|
||||
----------------
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
from .functools32 import *
|
|
@ -13,13 +13,13 @@ __all__ = ['update_wrapper', 'wraps', 'WRAPPER_ASSIGNMENTS', 'WRAPPER_UPDATES',
|
|||
|
||||
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
|
4
setup.py
4
setup.py
|
@ -11,7 +11,7 @@ def main():
|
|||
|
||||
setup(
|
||||
name='functools32',
|
||||
version='3.2.3',
|
||||
version='3.2.3-1',
|
||||
description='Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy.',
|
||||
long_description="""
|
||||
This is a backport of the functools standard library module from
|
||||
|
@ -23,7 +23,7 @@ new features `lru_cache` (Least-recently-used cache decorator).""",
|
|||
maintainer_email='djmchl@gmail.com',
|
||||
url='https://github.com/MiCHiLU/python-functools32',
|
||||
|
||||
py_modules=['functools32'],
|
||||
packages=['functools32'],
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import test_support27 as support
|
|||
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):
|
||||
|
@ -617,10 +617,10 @@ class TestLRU(unittest.TestCase):
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue