diff options
author | Guido van Rossum <guido@python.org> | 1998-03-24 05:30:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-24 05:30:29 (GMT) |
commit | ed5b3d8b3c8077c8c57c8a825cae06e319b0994d (patch) | |
tree | f200df16bbb012dcfe74b75a990c32709e80f44a /Tools/scripts/fixnotice.py | |
parent | 3db0e3713cd59d1c922002056f11ae5caf02805c (diff) | |
download | cpython-ed5b3d8b3c8077c8c57c8a825cae06e319b0994d.zip cpython-ed5b3d8b3c8077c8c57c8a825cae06e319b0994d.tar.gz cpython-ed5b3d8b3c8077c8c57c8a825cae06e319b0994d.tar.bz2 |
give in to tab police
Diffstat (limited to 'Tools/scripts/fixnotice.py')
-rwxr-xr-x | Tools/scripts/fixnotice.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/fixnotice.py b/Tools/scripts/fixnotice.py index 4287ca2..cf6f140 100755 --- a/Tools/scripts/fixnotice.py +++ b/Tools/scripts/fixnotice.py @@ -50,9 +50,9 @@ import os, sys, string def main(): args = sys.argv[1:] if not args: - print "No arguments." + print "No arguments." for arg in args: - process(arg) + process(arg) def process(arg): f = open(arg) @@ -60,8 +60,8 @@ def process(arg): f.close() i = string.find(data, OLD_NOTICE) if i < 0: -## print "No old notice in", arg - return +## print "No old notice in", arg + return data = data[:i] + NEW_NOTICE + data[i+len(OLD_NOTICE):] new = arg + ".new" backup = arg + ".bak" |