#1172 Fix RHBZ#1686473
Merged 5 years ago by jkaluza. Opened 5 years ago by mprahl.

@@ -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])

rebased onto 3d3da4d

5 years ago

Looks right and tested to work for me.

(PR #1174 took a different approach, this is probably at least as good.)

Pull-Request has been merged by jkaluza

5 years ago