diff MoinMoin/caching.py @ 1920:b06ef2a53efa

'make pylint', fixed lots of minor stuff found by pylint (and there is still lots left to do)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 30 Mar 2007 21:50:50 +0200
parents bb2e053067fb
children adcdb9cc9258
line wrap: on
line diff
--- a/MoinMoin/caching.py	Tue Mar 27 21:50:05 2007 +0200
+++ b/MoinMoin/caching.py	Fri Mar 30 21:50:50 2007 +0200
@@ -89,21 +89,21 @@
 
         return needsupdate
 
-    def copyto(self, filename):
-        # currently unused function
-        import shutil
-        tmpfname = self._tmpfilename()
-        fname = self._filename()
-        if not self.locking or self.locking and self.wlock.acquire(1.0):
-            try:
-                shutil.copyfile(filename, tmpfname)
-                # this is either atomic or happening with real locks set:
-                filesys.rename(tmpfname, fname)
-            finally:
-                if self.locking:
-                    self.wlock.release()
-        else:
-            self.request.log("Can't acquire write lock in %s" % self.lock_dir)
+#    def copyto(self, filename):
+#        # currently unused function
+#        import shutil
+#        tmpfname = self._tmpfilename()
+#        fname = self._filename()
+#        if not self.locking or self.locking and self.wlock.acquire(1.0):
+#            try:
+#                shutil.copyfile(filename, tmpfname)
+#                # this is either atomic or happening with real locks set:
+#                filesys.rename(tmpfname, fname)
+#            finally:
+#                if self.locking:
+#                    self.wlock.release()
+#        else:
+#            self.request.log("Can't acquire write lock in %s" % self.lock_dir)
 
     def update(self, content):
         try: