]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
testutil.py: hush the new (more strict) pyflakes
authorBrian Warner <warner@allmydata.com>
Tue, 15 Jan 2008 01:27:55 +0000 (18:27 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 15 Jan 2008 01:27:55 +0000 (18:27 -0700)
src/allmydata/util/testutil.py

index ece4609dc8bbee937ee1727290a2ec1625d12c11..867cf00c17ed0916b2e78d5f1d2b0741c0e0a5be 100644 (file)
@@ -135,9 +135,11 @@ try:
         win32file.SetFileAttributes(path, win32con.FILE_ATTRIBUTE_NORMAL)
 except ImportError:
     import stat
-    def make_readonly(path):
+    def _make_readonly(path):
         os.chmod(path, stat.S_IREAD)
         os.chmod(os.path.dirname(path), stat.S_IREAD)
-    def make_accessible(path):
+    def _make_accessible(path):
         os.chmod(os.path.dirname(path), stat.S_IWRITE | stat.S_IEXEC | stat.S_IREAD)
         os.chmod(path, stat.S_IWRITE | stat.S_IEXEC | stat.S_IREAD)
+    make_readonly = _make_readonly
+    make_accessible = _make_accessible