Uniformly replaced init() functions by __init__() constructors.

A few simple things seem to work, I haven't tested it thouroughly
though...
This commit is contained in:
Guido van Rossum 1993-12-17 15:11:41 +00:00
parent 96b608cf6d
commit 21a3ff9d5d
27 changed files with 86 additions and 95 deletions

View file

@ -65,7 +65,7 @@ def main():
def process(infilename, outfilename):
try:
vin = VFile.BasicVinFile().init(infilename)
vin = VFile.BasicVinFile(infilename)
except IOError, msg:
sys.stderr.write(infilename + ': I/O error: ' + `msg` + '\n')
return 1
@ -77,7 +77,7 @@ def process(infilename, outfilename):
return 1
try:
vout = VFile.BasicVoutFile().init(outfilename)
vout = VFile.BasicVoutFile(outfilename)
except IOError, msg:
sys.stderr.write(outfilename + ': I/O error: ' + `msg` + '\n')
return 1