3d3da4d
@@ -471,7 +471,7 @@
def submit_module_build_from_yaml(username, handle, stream=None, skiptests=False,
optional_params=None):
- yaml_file = handle.read().decode("utf-8")
+ yaml_file = to_text_type(handle.read())
mmd = load_mmd(yaml_file)
dt = datetime.utcfromtimestamp(int(time.time()))
def_name = str(os.path.splitext(os.path.basename(handle.filename))[0])
https://bugzilla.redhat.com/show_bug.cgi?id=1686473
rebased onto 3d3da4d
Looks right and tested to work for me.
(PR #1174 took a different approach, this is probably at least as good.)
+1, merging.
Pull-Request has been merged by jkaluza
https://bugzilla.redhat.com/show_bug.cgi?id=1686473