hgkw/pretxnkw.py
branchdecodefilter
changeset 9 437724c81b8f
parent 8 180d8484503a
child 10 d8cd07b798f2
--- a/hgkw/pretxnkw.py	Thu Dec 14 12:55:52 2006 +0100
+++ b/hgkw/pretxnkw.py	Thu Dec 14 12:58:46 2006 +0100
@@ -36,7 +36,7 @@
 
     for filename in files:
 
-        data = repo.wopener(filename, 'rb').read()
+        data = repo.wfile(filename).read()
         bn = os.path.basename(filename)
 
         # check for keywords with incorrect basename
@@ -57,6 +57,6 @@
             ui.note(_('expanding keywords in %s\n' % filename))
             absname = os.path.join(repo.root, filename)
             util.copyfile(absname, absname+'~')
-            repo.wopener(filename, 'wb').write(data)
+            repo.wfile(filename, 'w').write(data)
 
     return False