pyqt4topyqt5-binary-to-utf.patch 455 B

123456789101112
  1. --- pyqt4topyqt5.py 2017-05-03 12:55:07.000000000 -0400
  2. +++ pyqt4topyqt5.py 2020-07-08 23:28:51.149813392 -0400
  3. @@ -2737,7 +2737,7 @@
  4. cmd = ['diff', '-u', orig, dest]
  5. with open(diffname, 'a') as outf:
  6. reply = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  7. - outf.write(str(reply.communicate()[0]))
  8. + outf.write(reply.communicate()[0].decode('utf-8'))
  9. def print_(self, msg):
  10. if self.log: