aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/py24compat.py
blob: 40e9ae0f7422036ae1a2cd94fcb025d8e3b8f71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
Forward-compatibility support for Python 2.4 and earlier
"""

# from jaraco.compat 1.2
try:
    from functools import wraps
except ImportError:
    def wraps(func):
        "Just return the function unwrapped"
        return lambda x: x


try:
    import hashlib
except ImportError:
    from setuptools._backport import hashlib