summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/classfix.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-26 13:23:22 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-26 13:23:22 (GMT)
commit7e73fd0024f82c9ecce2e75da3af116ffa760993 (patch)
tree74a5f33da37f4f4aacb1172f4112d33507b24786 /Tools/scripts/classfix.py
parent4a3a41f1bb1bdb753fc456d671389521a0c371b2 (diff)
downloadcpython-7e73fd0024f82c9ecce2e75da3af116ffa760993.zip
cpython-7e73fd0024f82c9ecce2e75da3af116ffa760993.tar.gz
cpython-7e73fd0024f82c9ecce2e75da3af116ffa760993.tar.bz2
Fix bogus mode mask.
Diffstat (limited to 'Tools/scripts/classfix.py')
-rwxr-xr-xTools/scripts/classfix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/classfix.py b/Tools/scripts/classfix.py
index df9bed9..9c56a89 100755
--- a/Tools/scripts/classfix.py
+++ b/Tools/scripts/classfix.py
@@ -137,7 +137,7 @@ def fix(filename):
# First copy the file's mode to the temp file
try:
statbuf = posix.stat(filename)
- posix.chmod(tempname, statbuf[ST_MODE] & 0x7777)
+ posix.chmod(tempname, statbuf[ST_MODE] & 07777)
except posix.error, msg:
err(tempname + ': warning: chmod failed (' + `msg` + ')\n')
# Then make a backup of the original file as filename~