changed file() to open() in python scripts

This commit is contained in:
Clifford Wolf
2015-05-11 21:58:21 +02:00
parent 42348cddd9
commit dae00e1d83
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ def random_expr(variables):
raise AssertionError
for idx in range(50):
with file('temp/uut_%05d.v' % idx, 'w') as f:
with open('temp/uut_%05d.v' % idx, 'w') as f:
with redirect_stdout(f):
rst2 = random.choice([False, True])
if rst2:
@@ -90,7 +90,7 @@ for idx in range(50):
print(' end')
print(' end')
print('endmodule')
with file('temp/uut_%05d.ys' % idx, 'w') as f:
with open('temp/uut_%05d.ys' % idx, 'w') as f:
with redirect_stdout(f):
if test_verific:
print('read_verilog temp/uut_%05d.v' % idx)