This bug is still present in hplip 3.19.12.
The patch from comment 1 should be applied. And the change from comment 12. Or better:
diff --git a/base/utils.py b/base/utils.py index f268cf8..cc77820 100644 --- a/base/utils.py +++ b/base/utils.py @@ -954,10 +954,7 @@ else:
def printable(s): - if s: - return s.translate(identity, unprintable) - else: - return "" + return s.translate(identity, unprintable)
This bug is still present in hplip 3.19.12.
The patch from comment 1 should be applied. And the change from comment 12. Or better:
diff --git a/base/utils.py b/base/utils.py
index f268cf8..cc77820 100644
--- a/base/utils.py
+++ b/base/utils.py
@@ -954,10 +954,7 @@ else:
def printable(s): identity, unprintable) identity, unprintable)
- if s:
- return s.translate(
- else:
- return ""
+ return s.translate(