3b7ae335f3
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/hplip#7cb6f648cdb35a0f018b511d10b516d6d9e4d638
19 lines
410 B
Diff
19 lines
410 B
Diff
diff --git a/base/sixext.py b/base/sixext.py
|
|
index 0bf4fc4..311bf72 100644
|
|
--- a/base/sixext.py
|
|
+++ b/base/sixext.py
|
|
@@ -110,11 +110,11 @@ if PY3:
|
|
|
|
|
|
def to_string_utf8(s):
|
|
- return s.decode("utf-8")
|
|
+ return s.decode("utf-8", 'ignore')
|
|
|
|
|
|
def to_string_latin(s):
|
|
- return s.decode("latin-1")
|
|
+ return s.decode("latin-1", 'ignore')
|
|
|
|
|
|
def to_unicode(s, enc=None):
|