diff options
author | Guido van Rossum <guido@python.org> | 1991-12-26 13:23:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-26 13:23:22 (GMT) |
commit | 7e73fd0024f82c9ecce2e75da3af116ffa760993 (patch) | |
tree | 74a5f33da37f4f4aacb1172f4112d33507b24786 /Tools/scripts/classfix.py | |
parent | 4a3a41f1bb1bdb753fc456d671389521a0c371b2 (diff) | |
download | cpython-7e73fd0024f82c9ecce2e75da3af116ffa760993.zip cpython-7e73fd0024f82c9ecce2e75da3af116ffa760993.tar.gz cpython-7e73fd0024f82c9ecce2e75da3af116ffa760993.tar.bz2 |
Fix bogus mode mask.
Diffstat (limited to 'Tools/scripts/classfix.py')
-rwxr-xr-x | Tools/scripts/classfix.py | 2 |
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~ |