diff mercurial/patch.py @ 9031:3b76321aa0de

compat: use open() instead of file() everywhere
author Alejandro Santos <alejolp@alejolp.com>
date Sun, 05 Jul 2009 11:01:30 +0200
parents 0001e49f1c11
children 1fa80c5428b8
line wrap: on
line diff
--- a/mercurial/patch.py	Sun Jul 05 11:01:01 2009 +0200
+++ b/mercurial/patch.py	Sun Jul 05 11:01:30 2009 +0200
@@ -1139,7 +1139,7 @@
         raise util.Abort(_('Unsupported line endings type: %s') % eolmode)
 
     try:
-        fp = file(patchobj, 'rb')
+        fp = open(patchobj, 'rb')
     except TypeError:
         fp = patchobj
     if cwd: