diff MoinMoin/caching.py @ 1317:76a76def8687

remove most chmod calls, use 1 os.umask() call in request module instead (port from 1.5)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 18 Aug 2006 21:20:15 +0200
parents c4f6af5ee295
children 8a89649ab5f0
line wrap: on
line diff
--- a/MoinMoin/caching.py	Thu Aug 17 19:58:52 2006 +0200
+++ b/MoinMoin/caching.py	Fri Aug 18 21:20:15 2006 +0200
@@ -99,10 +99,6 @@
                 shutil.copyfile(filename, tmpfname)
                 # this is either atomic or happening with real locks set:
                 filesys.rename(tmpfname, fname)
-                try:
-                    os.chmod(self._filename(), 0666 & config.umask)
-                except OSError:
-                    pass
             finally:
                 if self.locking:
                     self.wlock.release()
@@ -124,10 +120,6 @@
                 f.close()
                 # this is either atomic or happening with real locks set:
                 filesys.rename(tmpfname, fname)
-                try:
-                    os.chmod(fname, 0666 & config.umask)
-                except OSError:
-                    pass
             finally:
                 if self.locking:
                     self.wlock.release()