From a90d05fb47bd5653ba9ceb09ffdfb6d2c0a91605 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Mar 04 2019 16:22:32 +0000 Subject: also remove nonprintable changelog chars in py3 Fixes: https://pagure.io/koji/issue/1319 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 5322a64..51255f2 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -9698,10 +9698,8 @@ class RootExports(object): results.append({'date': cldate, 'date_ts': cltime, 'author': clname, 'text': cltext}) results = _applyQueryOpts(results, queryOpts) - if six.PY2: - return koji.fixEncodingRecurse(results, remove_nonprintable=True) - else: - return results + return koji.fixEncodingRecurse(results, remove_nonprintable=True) + def cancelBuild(self, buildID): """Cancel the build with the given buildID