diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-05-11 21:46:35 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-05-11 21:58:21 +0200 |
commit | dae00e1d8301aae25f3432ca12995c9a3b380679 (patch) | |
tree | b55a32f53afa4611a6c3a1ef824b2b22b95dcc2e /tests/fsm | |
parent | 42348cddd9218f198e93bc11909e7b118a71c9ba (diff) | |
download | yosys-dae00e1d8301aae25f3432ca12995c9a3b380679.tar.gz yosys-dae00e1d8301aae25f3432ca12995c9a3b380679.tar.bz2 yosys-dae00e1d8301aae25f3432ca12995c9a3b380679.zip |
changed file() to open() in python scripts
Diffstat (limited to 'tests/fsm')
-rw-r--r-- | tests/fsm/generate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fsm/generate.py b/tests/fsm/generate.py index fc67543f2..352eedb09 100644 --- a/tests/fsm/generate.py +++ b/tests/fsm/generate.py @@ -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) |