summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client')
-rwxr-xr-xsrc/lib/Client/Tools/rpmtools.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/Client/Tools/rpmtools.py b/src/lib/Client/Tools/rpmtools.py
index c9385196f..e224a3fb3 100755
--- a/src/lib/Client/Tools/rpmtools.py
+++ b/src/lib/Client/Tools/rpmtools.py
@@ -21,19 +21,19 @@
__revision__ = '$Revision$'
import grp
-try:
- import hashlib
- py24compat = False
-except:
- # FIXME: Remove when client python dep is 2.5 or greater
- py24compat = True
- import md5
import optparse
import os
import pwd
import rpm
import stat
import sys
+if sys.version_info >= (2, 5):
+ import hashlib
+ py24compat = False
+else:
+ # FIXME: Remove when client python dep is 2.5 or greater
+ py24compat = True
+ import md5
# Determine what prelink tools we have available.
# The isprelink module is a python extension that examines the ELF headers