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 | 1bf429a8a33fe7e1965ba3764877426882cd37e3 (patch) | |
| tree | e7679b42fc872c2f981677726a69f9cb285630d2 /setuptools/py24compat.py | |
| parent | 83d465faf3a13ca4efdf7584839ad83711a28b7c (diff) | |
| download | python-setuptools-bitbucket-1bf429a8a33fe7e1965ba3764877426882cd37e3.tar.gz | |
Add a shim for python 2.4 compatability with hashlib
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 |
