Commits

benoitcsirois committed de23a4c

Another python3 perk

  • Participants
  • Parent commits c6ea9cf

Comments (0)

Files changed (1)

                              stdout=subprocess.PIPE, stderr=subprocess.PIPE)
         if not p.returncode:
             fh = open('HGREV', 'w')
-            fh.write(p.communicate()[0].splitlines()[0])
+            fh.write((p.communicate()[0].splitlines()[0] or '').decode('utf-8'))
             fh.close()
 except (OSError, IndexError):
     pass