read json data in text-mode instead of binary
This commit is contained in:
parent
449390cff9
commit
6948551318
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue