[entropy] ditch os.F_OK everywhere

This commit is contained in:
Fabio Erculiani
2009-09-05 14:35:55 +02:00
parent c469afeff7
commit b2149f5660
23 changed files with 87 additions and 58 deletions

View File

@@ -27,7 +27,7 @@ def write_new_line(buf, data):
for path in args:
if not os.access(path, os.F_OK | os.R_OK | os.W_OK):
if not (os.path.isfile(path) and os.access(path, os.R_OK | os.W_OK)):
sys.stderr.write("unable to deal with %s\n" % (path,))
sys.stderr.flush()
continue