Comment 5 for bug 1773320

Revision history for this message
zdohnal (zdohnal) wrote :

Without reverting this change:

####################################
+ if s:
+ return s.translate(identity, unprintable)
+ else:
+ return ""
####################################

back to:

####################################
     return s.translate(identity, unprintable)
####################################

the 'hp-setup --debug' command ends with trackback:

Traceback (most recent call last):
  File "/usr/share/hplip/ui5/setupdialog.py", line 1305, in NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/share/hplip/ui5/setupdialog.py", line 729, in showAddPrinterPage
    self.readwriteFaxInformation()
  File "/usr/share/hplip/ui5/setupdialog.py", line 1128, in readwriteFaxInformation
    self.fax_number = to_unicode(d.getPhoneNum())
  File "/usr/share/hplip/fax/pmlfax.py", line 147, in getPhoneNum
    return data.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

Only if I revert both changes - these in fax/pmlfax.py and base/utils.py - I get past the tracebacks.