Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37770020
en ru br
ALT Linux repositórios
S:3.23.8-alt1
5.0: 2.8.10-alt3
4.1: 2.8.10-alt2.M41.1
4.0: 2.7.12-alt2.M40.1
+backports:2.8.10-alt2.M40.1
3.0:
+backports:1.6.6a-alt0.M30.4.1

Group :: Edição
RPM: hplip

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0029-Make-base.g.xint-more-generous-in-what-it-can-take.patch
Download


From dc0f9c2cb573df931e725dabb19e1a526a331c60 Mon Sep 17 00:00:00 2001
From: Didier Raboud <odyx@debian.org>
Date: Tue, 6 Nov 2018 17:57:40 +0100
Subject: Make base.g.xint more generous in what it can take
Fixes hp-doctor in python with version '2.7.15+'
Closes: #912765
---
 base/g.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/g.py b/base/g.py
index f73e23f97..15e67fc17 100644
--- a/base/g.py
+++ b/base/g.py
@@ -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.   
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009