diff options
| author | Donald Stufft <donald@stufft.io> | 2013-07-09 22:12:15 -0400 |
|---|---|---|
| committer | Donald Stufft <donald@stufft.io> | 2013-07-09 22:12:15 -0400 |
| commit | dcba8b90b84506a7325f8e576d10ccb8d2e9a415 (patch) | |
| tree | 8050ecb98da3afba800398b95e1aa40f1c84a2dc /setuptools/py24compat.py | |
| parent | 2a05cb8c9f72d15f953d932e5343235fc024fec3 (diff) | |
| download | python-setuptools-git-dcba8b90b84506a7325f8e576d10ccb8d2e9a415.tar.gz | |
Add a shim for python 2.4 compatability with hashlib
--HG--
extra : rebase_source : 5f573e600aadbe9c95561ee28c05cee02c7db559
Diffstat (limited to 'setuptools/py24compat.py')
| -rw-r--r-- | setuptools/py24compat.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/py24compat.py b/setuptools/py24compat.py index c5d7d204..40e9ae0f 100644 --- a/setuptools/py24compat.py +++ b/setuptools/py24compat.py @@ -9,3 +9,9 @@ except ImportError: def wraps(func): "Just return the function unwrapped" return lambda x: x + + +try: + import hashlib +except ImportError: + from setuptools._backport import hashlib |
