diff options
Diffstat (limited to 'src/lib/Server/Plugins/Packages.py')
-rw-r--r-- | src/lib/Server/Plugins/Packages.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py index d2517590c..61d6e1778 100644 --- a/src/lib/Server/Plugins/Packages.py +++ b/src/lib/Server/Plugins/Packages.py @@ -6,11 +6,13 @@ import logging import lxml.etree import os import re +import sys import urllib2 -try: +# FIXME: Remove when server python dep is 2.5 or greater +if sys.version_info >= (2, 5):: from hashlib import md5 -except ImportError: +else: from md5 import md5 import Bcfg2.Logger |