Commits

Steve Borho  committed 5275574

patchctx: read patch files in binary mode (fixes #276)

  • Participants
  • Parent commits c60cf85
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/util/patchctx.py

             return type, rawpath.split('/', 1)[-1]
 
         files = {}
-        pf = open(self._path)
+        pf = open(self._path, 'rb')
         try:
             try:
                 # consume comments and headers