Author: Romain Guillebert <[email protected]>
Branch: py3k
Changeset: r51367:4714f110a1ae
Date: 2012-01-16 18:58 +0100
http://bitbucket.org/pypy/pypy/changeset/4714f110a1ae/
Log: Use new octal literals
diff --git a/pypy/translator/goal/nanos.py b/pypy/translator/goal/nanos.py
--- a/pypy/translator/goal/nanos.py
+++ b/pypy/translator/goal/nanos.py
@@ -85,7 +85,7 @@
st = posix.stat(path)
except posix.error:
return False
- return (st.st_mode & 0170000) == 0100000 # S_ISREG
+ return (st.st_mode & 0o170000) == 0o100000 # S_ISREG
def islink(path):
import posix
@@ -93,7 +93,7 @@
st = posix.lstat(path)
except posix.error:
return False
- return (st.st_mode & 0170000) == 0120000 # S_ISLNK
+ return (st.st_mode & 0o170000) == 0o120000 # S_ISLNK
""", filename=__file__)
@@ -249,7 +249,7 @@
st = nt.stat(path)
except nt.error:
return False
- return (st.st_mode & 0170000) == 0100000 # S_ISREG
+ return (st.st_mode & 0o170000) == 0o100000 # S_ISREG
def islink(path):
return False
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit