Skip to content

Commit dccdf52

Browse files
committed
Update README
1 parent 7baddb6 commit dccdf52

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
This 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

45
Refer to the Python 3.2 documentation for usage information:
56
http://docs.python.org/3.2/library/functools.html

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66

77
def 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="""
1717
This 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
1919
new features `lru_cache` (Least-recently-used cache decorator).""",
2020
license='PSF license',
2121

0 commit comments

Comments
 (0)