Skip to content

Instantly share code, notes, and snippets.

@Polylogic
Created November 15, 2016 00:23
Show Gist options
  • Save Polylogic/f0b51381b2e7b160e49c8f99d13a4a8f to your computer and use it in GitHub Desktop.
Save Polylogic/f0b51381b2e7b160e49c8f99d13a4a8f to your computer and use it in GitHub Desktop.
--- lib\mozilla\extensions\mercurial@ActiveState.com\pylib\orig_hglib.py
+++ lib\mozilla\extensions\mercurial@ActiveState.com\pylib\hglib.py
@@ -189,7 +189,7 @@
argv = [self.executable, 'cat'] + baseNameAsArray
output, error = self._runCommand(argv, cwd=cwd, env=env)
result = {}
- result['stdout'] = output
+ result['stdout'] = output.decode('utf8', 'ignore')
result['stderr'] = error
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment