mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
And another init incompatibility bites the dust.
This commit is contained in:
parent
d6b9ce961e
commit
c6d846a5d5
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@ def main():
|
||||||
def process(filename):
|
def process(filename):
|
||||||
try:
|
try:
|
||||||
fp = open(filename, 'r+')
|
fp = open(filename, 'r+')
|
||||||
vin = VFile.RandomVinFile().initfp(fp, filename)
|
vin = VFile.RandomVinFile(fp)
|
||||||
|
vin.filename = filename
|
||||||
except IOError, msg:
|
except IOError, msg:
|
||||||
sys.stderr.write(filename + ': I/O error: ' + `msg` + '\n')
|
sys.stderr.write(filename + ': I/O error: ' + `msg` + '\n')
|
||||||
return 1
|
return 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue