mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-06-27 17:01:20 -04:00
Lots more python cleanup
This commit is contained in:
parent
0e3030dc23
commit
21e35c9068
20 changed files with 82 additions and 82 deletions
|
@ -13,7 +13,7 @@ def main(args):
|
|||
probenum = 0
|
||||
countLines = 1
|
||||
|
||||
with open(args[0],'r') as xdcfile, open(args[1], 'w') as outfile:
|
||||
with open(args[0]) as xdcfile, open(args[1], 'w') as outfile:
|
||||
Lines = xdcfile.readlines()
|
||||
for line in Lines:
|
||||
t = re.sub("probe[0-9]+", f"probe{probenum}",line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue