mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Added 1995 to copyright message; added a few people to acks again...
This commit is contained in:
parent
f456b6d691
commit
227a0a1e2d
4 changed files with 20 additions and 12 deletions
|
@ -8,12 +8,18 @@ import os
|
|||
import stat
|
||||
import getopt
|
||||
|
||||
oldcprt = 'Copyright 1991, 1992, 1993 by Stichting Mathematisch Centrum,\nAmsterdam, The Netherlands.'
|
||||
newcprt = 'Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,\nAmsterdam, The Netherlands.'
|
||||
oldcprt = """\
|
||||
Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
|
||||
Amsterdam, The Netherlands."""
|
||||
newcprt = """\
|
||||
Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
|
||||
The Netherlands."""
|
||||
|
||||
oldprog = regex.compile(oldcprt)
|
||||
newprog = regex.compile(newcprt)
|
||||
|
||||
HEADSIZE = 1024
|
||||
|
||||
def main():
|
||||
opts, args = getopt.getopt(sys.argv[1:], 'y:')
|
||||
agelimit = 0L
|
||||
|
@ -36,7 +42,7 @@ def main():
|
|||
except IOError, msg:
|
||||
print file, ': open failed :', msg
|
||||
continue
|
||||
head = f.read(1024)
|
||||
head = f.read(HEADSIZE)
|
||||
if oldprog.search(head) < 0:
|
||||
if newprog.search(head) < 0:
|
||||
print file, ': NO COPYRIGHT FOUND'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue