From 7e73fd0024f82c9ecce2e75da3af116ffa760993 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 26 Dec 1991 13:23:22 +0000 Subject: Fix bogus mode mask. --- Tools/scripts/classfix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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~ -- cgit v0.12