Skip to content
Snippets Groups Projects
Commit 7e06b4e4 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Remove hashlib fallback for Py <2.5

parent f9810c6e
No related branches found
No related tags found
1 merge request!98Remove hashlib fallback for Py <2.5
Pipeline #20016 passed with warnings
......@@ -36,13 +36,8 @@ import logging
logger = logging.getLogger(__name__)
try:
import hashlib
new_hash = hashlib.md5
except ImportError:
# for Python << 2.5
import md5
new_hash = md5.new
import hashlib
new_hash = hashlib.md5
def _erase_dir(dir):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment