diff options
author | Didier Raboud <odyx@debian.org> | 2018-11-06 17:57:40 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2018-11-06 17:57:40 +0100 |
commit | dc0f9c2cb573df931e725dabb19e1a526a331c60 (patch) | |
tree | c225c99cbe1680a3decddb3e344bb6c1150f78e8 | |
parent | 384bab0dbdb9c5a9851a65d8d0a5082c50938096 (diff) |
Make base.g.xint more generous in what it can take
Fixes hp-doctor in python with version '2.7.15+'
Closes: #912765
-rw-r--r-- | base/g.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -326,9 +326,9 @@ def cleanup_spinner(): # Convert string to int and return a list. def xint(ver): try: - l = [int(x) for x in ver.split('.')] - except: - pass + l = [int(x.translate(None, '+~')) for x in ver.split('.')] + except ValueError: + l = [] return l # In case of import failure of extension modules, check whether its a mixed python environment issue. |