[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#948932: /usr/share/hplip/base/utils.py: /usr/share/hplip/base/utils.py has python error



Control: tags -1 +pending

Le mardi, 14 janvier 2020, 23.03:33 h CET Kevin Dalley a écrit :
> Package: hplip-data
> Version: 3.19.12+dfsg0-2
> Severity: important
> File: /usr/share/hplip/base/utils.py
> Tags: patch
> 
> When trying to add a new printer, I receive the error below, and
> the printer is not added. Applying the patch allow the printer to be
> added.

Thanks for your report; I'm pushing a(nother) patch to address this:

--- a/base/utils.py
+++ b/base/utils.py
@@ -958,7 +958,7 @@ else:
 
 def printable(s):
     if s:
-        return s.translate(identity, unprintable)
+        return "".join(c for c in s.translate(identity) if c not in unprintable)
     else:
         return ""

Cheers,
    OdyX

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: