store: drop self.encodefn
authorMatt Mackall <mpm@selenic.com>
Wed, 13 Aug 2008 20:18:44 -0500
changeset 6902 93f761c25dea
parent 6901 43a817f3a649
child 6903 0642d9d7ec80
store: drop self.encodefn
mercurial/store.py
--- a/mercurial/store.py	Wed Aug 13 20:18:44 2008 -0500
+++ b/mercurial/store.py	Wed Aug 13 20:18:44 2008 -0500
@@ -94,10 +94,9 @@
     def __init__(self, path, opener):
         self.path = os.path.join(path, 'store')
         self.createmode = _calcmode(self.path)
-        self.encodefn = encodefilename
         op = opener(self.path)
         op.createmode = self.createmode
-        self.opener = lambda f, *args, **kw: op(self.encodefn(f), *args, **kw)
+        self.opener = lambda f, *args, **kw: op(encodefilename(f), *args, **kw)
 
     def datafiles(self):
         for a, b, size in self._walk('data', True):
@@ -108,7 +107,7 @@
             yield a, b, size
 
     def join(self, f):
-        return os.path.join(self.path, self.encodefn(f))
+        return os.path.join(self.path, encodefilename(f))
 
 def store(requirements, path, opener):
     if 'store' in requirements: