It isn't used anywhere else in the source and its presence is confusing.
(We're supposed to use koji.fixEncoding(..) now, right?) --- koji/__init__.py | 5 ----- 1 file changed, 5 deletions(-)
diff --git a/koji/__init__.py b/koji/__init__.py index 939b05a..3711018 100644 --- a/koji/__init__.py +++ b/koji/__init__.py @@ -2416,11 +2416,6 @@ def _taskLabel(taskInfo): else: return '%s (%s)' % (method, arch)
-def _forceAscii(value): - """Replace characters not in the 7-bit ASCII range - with "?".""" - return ''.join([(ord(c) <= 127) and c or '?' for c in value]) - def fixEncoding(value, fallback='iso8859-15'): """ Convert value to a 'str' object encoded as UTF-8.
On 08/31/2015 01:27 PM, Ralph Bean wrote:
It isn't used anywhere else in the source and its presence is confusing.
(We're supposed to use koji.fixEncoding(..) now, right?)
ack, and yes
koji/__init__.py | 5 ----- 1 file changed, 5 deletions(-)
diff --git a/koji/__init__.py b/koji/__init__.py index 939b05a..3711018 100644 --- a/koji/__init__.py +++ b/koji/__init__.py @@ -2416,11 +2416,6 @@ def _taskLabel(taskInfo): else: return '%s (%s)' % (method, arch)
-def _forceAscii(value):
- """Replace characters not in the 7-bit ASCII range
- with "?"."""
- return ''.join([(ord(c) <= 127) and c or '?' for c in value])
def fixEncoding(value, fallback='iso8859-15'): """ Convert value to a 'str' object encoded as UTF-8.
koji-devel@lists.fedorahosted.org