From 7e06b4e4a7ece24a2697cb23026bbc008de1c3be Mon Sep 17 00:00:00 2001 From: "[6~" Date: Wed, 6 Nov 2019 00:14:46 -0600 Subject: [PATCH] Remove hashlib fallback for Py <2.5 --- pyopencl/cache.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pyopencl/cache.py b/pyopencl/cache.py index b6d21f28..b30563a1 100644 --- a/pyopencl/cache.py +++ b/pyopencl/cache.py @@ -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): -- GitLab