Skip to content

Commit 5249e8e

Browse files
Fix syntax error and double open introduced in #735
1 parent f002192 commit 5249e8e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

utils/viewcfg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import re
2121
import sys
2222
import tempfile
2323
import subprocess
24-
import os
2524

2625
def help():
2726
print("""\
@@ -138,9 +137,7 @@ def main():
138137
# Write the output dot file.
139138

140139
fileName = tempfile.gettempdir() + "/viewcfg" + suffix + ".dot"
141-
with open(fileName 'w') as outFile:
142-
outFile = open(fileName, "w")
143-
140+
with open(fileName, 'w') as outFile:
144141
outFile.write('digraph "CFG" {\n')
145142
for name, block in blocks.iteritems():
146143
if block.content is not None:

0 commit comments

Comments
 (0)