hgext/extdiff.py
changeset 14168 135e244776f0
parent 14045 1c38777f7b8a
child 14232 df2399663392
--- a/hgext/extdiff.py	Mon May 02 10:11:05 2011 +0200
+++ b/hgext/extdiff.py	Mon May 02 10:11:18 2011 +0200
@@ -97,7 +97,7 @@
         if 'l' in fctx.flags():
             wopener.symlink(data, wfn)
         else:
-            wopener(wfn, 'w').write(data)
+            wopener.write(wfn, data)
             if 'x' in fctx.flags():
                 util.set_flags(dest, False, True)
         if node is None: