read json data in text-mode instead of binary

This commit is contained in:
Tomas Kopecek 2017-05-03 17:41:17 +02:00
parent 449390cff9
commit 6948551318

View file

@ -5141,7 +5141,7 @@ class CG_Importer(object):
path = os.path.join(workdir, directory, metadata)
if not os.path.exists(path):
raise koji.GenericError("No such file: %s" % metadata)
fo = open(path, 'rb')
fo = open(path, 'rt')
metadata = fo.read()
fo.close()
self.raw_metadata = metadata