MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/2/task/2/root/usr/lib/python2.4/Tools/scripts/fixnotice.pyo
mò
‚=5Dc@ssdZdadkZdkZdkZdadadadd„Zd„Z	d„Z
edjoe	ƒndS(	så(Ostensibly) fix copyright notices in files.

Actually, this sript will simply replace a block of text in a file from one
string to another.  It will only do this once though, i.e. not globally
throughout the file.  It writes a backup file and then does an os.rename()
dance for atomicity.

Usage: fixnotices.py [options] [filenames]
Options:
    -h / --help
        Print this message and exit

    --oldnotice=file
        Use the notice in the file as the old (to be replaced) string, instead
        of the hard coded value in the script.

    --newnotice=file
        Use the notice in the file as the new (replacement) string, instead of
        the hard coded value in the script.

    --dry-run
        Don't actually make the changes, but print out the list of files that
        would change.  When used with -v, a status will be printed for every
        file.

    -v / --verbose
        Print a message for every file looked at, indicating whether the file
        is changed or not.
s¸/***********************************************************
Copyright (c) 2000, BeOpen.com.
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
All rights reserved.

See the file "Misc/COPYRIGHT" for information on usage and
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
******************************************************************/
NticCs-ttƒGH|o	|GHnti|ƒdS(N(t__doc__tglobalstmsgtsystexittcode(RR((t-/usr/lib/python2.4/Tools/scripts/fixnotice.pytusage4s	cCsBy5titidddddddgƒ\}}Wn%tij
o}td|ƒnXxÃ|D]»\}}|djotd
ƒqd|djo
da
qd|d
jo
daqd|djo&t|ƒ}|iƒa|iƒqd|djo&t|ƒ}|iƒa|iƒqdqdWx|D]}t|ƒq*WdS(Nithvthelps
oldnotice=s
newnotice=sdry-runtverboses-hs--helpis-vs	--verboses	--dry-runs--oldnotices--newnotice(s-hs--help(s-vs	--verbose(tgetoptRtargvtoptstargsterrorRRtopttargtVERBOSEtDRYRUNtopentfptreadt
OLD_NOTICEtcloset
NEW_NOTICEtprocess(RRRRRR((Rtmain;s2"






cCst|ƒ}|iƒ}|iƒ|itƒ}|djot	o
dG|GHndSnt
pt	o
dG|GHnt
odSn|| t||ttƒ}|d}|d}t|dƒ}|i|ƒ|iƒti||ƒti||ƒdS(Nis
no change:s
   change:s.news.baktw(RtfiletfRtdataRtfindRtiRRRtlentnewtbackuptwritetostrename(RR%RR"R$R ((RRXs(



 



t__main__(RRR'RRRRRRRRt__name__(RRRRRR'((Rt?s