From: Brian Warner Date: Tue, 15 Jan 2008 01:27:55 +0000 (-0700) Subject: testutil.py: hush the new (more strict) pyflakes X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/something?a=commitdiff_plain;h=f664dcb4892a732cdde829a65f8b7d59517f6e31;p=tahoe-lafs%2Ftahoe-lafs.git testutil.py: hush the new (more strict) pyflakes --- diff --git a/src/allmydata/util/testutil.py b/src/allmydata/util/testutil.py index ece4609d..867cf00c 100644 --- a/src/allmydata/util/testutil.py +++ b/src/allmydata/util/testutil.py @@ -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