mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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:
parent
96b608cf6d
commit
21a3ff9d5d
27 changed files with 86 additions and 95 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue