File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11This is a backport of the Python 3.2 functools module for use on
2- Python versions 2.4 through 2.7.
2+ Python versions 2.7 and PyPy. It includes new features
3+ `lru_cache` (Least-recently-used cache decorator).
34
45Refer to the Python 3.2 documentation for usage information:
56 http://docs.python.org/3.2/library/functools.html
Original file line number Diff line number Diff line change 55
66
77def main ():
8- if not sys .version . startswith ( '2.' ):
9- sys .stderr .write ('This backport is for Python 2.x only.\n ' )
8+ if not ( 3 ,) > sys .version_info >= ( 2 , 7 ):
9+ sys .stderr .write ('This backport is for Python 2.7 only.\n ' )
1010 sys .exit (1 )
1111
1212 setup (
1313 name = 'functools32' ,
1414 version = '3.2.3' ,
15- description = 'Backport of the functools module from Python 3.2.3 for use on 2.x .' ,
15+ description = 'Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy .' ,
1616 long_description = """
1717This is a backport of the functools standard library module from
18- Python 3.2.3 for use on Python 2.4, 2.5, 2.6 and 2.7 . It includes
18+ Python 3.2.3 for use on Python 2.7 and PyPy . It includes
1919new features `lru_cache` (Least-recently-used cache decorator).""" ,
2020 license = 'PSF license' ,
2121
You can’t perform that action at this time.
0 commit comments