Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Nov 29, 2023
1 parent dad2453 commit 9643850
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions decompiler/util/decoration.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,7 @@ def export_plot(self, path: str, type="png"):
type -- a string describing the output type (commonly pdf, png)
"""
with Popen(
["dot", f"-T{type}", f"-o{path}"],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True
["dot", f"-T{type}", f"-o{path}"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True
) as proc:
dot_source: str = ToDotConverter.write(self.graph)
stdout, stderr = proc.communicate(input=dot_source)
Expand Down

0 comments on commit 9643850

Please sign in to comment.