mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-30 01:38:55 +00:00
testutil.py: hush the new (more strict) pyflakes
This commit is contained in:
parent
c24a1bbaaa
commit
f664dcb489
@ -135,9 +135,11 @@ try:
|
|||||||
win32file.SetFileAttributes(path, win32con.FILE_ATTRIBUTE_NORMAL)
|
win32file.SetFileAttributes(path, win32con.FILE_ATTRIBUTE_NORMAL)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import stat
|
import stat
|
||||||
def make_readonly(path):
|
def _make_readonly(path):
|
||||||
os.chmod(path, stat.S_IREAD)
|
os.chmod(path, stat.S_IREAD)
|
||||||
os.chmod(os.path.dirname(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(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)
|
os.chmod(path, stat.S_IWRITE | stat.S_IEXEC | stat.S_IREAD)
|
||||||
|
make_readonly = _make_readonly
|
||||||
|
make_accessible = _make_accessible
|
||||||
|
Loading…
Reference in New Issue
Block a user