summaryrefslogtreecommitdiff
path: root/pcr-testing/anki-ccbc/pyqt4topyqt5-binary-to-utf.patch
blob: 98d26c00c98f41ae88f24d17f2cd55bfcb8afed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- pyqt4topyqt5.py	2017-05-03 12:55:07.000000000 -0400
+++ pyqt4topyqt5.py	2020-07-08 23:28:51.149813392 -0400
@@ -2737,7 +2737,7 @@
         cmd = ['diff', '-u', orig, dest]
         with open(diffname, 'a') as outf:
             reply = subprocess.Popen(cmd, stdout=subprocess.PIPE)
-            outf.write(str(reply.communicate()[0]))
+            outf.write(reply.communicate()[0].decode('utf-8'))
 
     def print_(self, msg):
         if self.log: