mercurial/util.py
changeset 4668 e241598e956f
parent 4647 7c80e3e6f030
child 4673 d8442fc0da8d
--- a/mercurial/util.py	Thu Jun 21 11:54:16 2007 -0500
+++ b/mercurial/util.py	Thu Jun 21 19:24:27 2007 +0200
@@ -1152,9 +1152,6 @@
     this function is used to hide the details of COW semantics and
     remote file access from higher level code.
     """
-    p = base
-    audit_p = audit
-
     def mktempcopy(name, emptyok=False):
         d, fn = os.path.split(name)
         fd, temp = tempfile.mkstemp(prefix='.%s-' % fn, dir=d)
@@ -1209,9 +1206,9 @@
                 posixfile.close(self)
 
     def o(path, mode="r", text=False, atomictemp=False):
-        if audit_p:
+        if audit:
             audit_path(path)
-        f = os.path.join(p, path)
+        f = os.path.join(base, path)
 
         if not text:
             mode += "b" # for that other OS