From 8d3512e136a8e0eede21282a028140ba3039a345 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: May 29 2018 08:09:50 +0000 Subject: hp-setup fails on fax setup - use binary strings --- diff --git a/hplip-use-binary-str.patch b/hplip-use-binary-str.patch index d5ad630..319f1d6 100644 --- a/hplip-use-binary-str.patch +++ b/hplip-use-binary-str.patch @@ -1,6 +1,21 @@ +diff -up hplip-3.18.5/base/utils.py.use-binary-str hplip-3.18.5/base/utils.py +--- hplip-3.18.5/base/utils.py.use-binary-str 2018-05-28 13:52:32.698082273 +0200 ++++ hplip-3.18.5/base/utils.py 2018-05-28 13:53:20.563707314 +0200 +@@ -961,10 +961,7 @@ else: + + + def printable(s): +- if s: +- return s.translate(identity, unprintable) +- else: +- return "" ++ return s.translate(identity, unprintable) + + + def any(S,f=lambda x:x): diff -up hplip-3.18.5/fax/pmlfax.py.use-binary-str hplip-3.18.5/fax/pmlfax.py ---- hplip-3.18.5/fax/pmlfax.py.use-binary-str 2018-05-25 09:33:11.839375105 +0200 -+++ hplip-3.18.5/fax/pmlfax.py 2018-05-25 09:50:54.131762944 +0200 +--- hplip-3.18.5/fax/pmlfax.py.use-binary-str 2018-05-24 06:34:40.000000000 +0200 ++++ hplip-3.18.5/fax/pmlfax.py 2018-05-28 13:52:05.752293151 +0200 @@ -143,8 +143,8 @@ class PMLFaxDevice(FaxDevice): def getPhoneNum(self):