Skip to content

Commit

Permalink
Merge pull request #2 from Nelsonlittle/master
Browse files Browse the repository at this point in the history
convert graph from string to bytes for python 3 compatibility
  • Loading branch information
daethnir committed Jun 10, 2018
2 parents 07c6cfd + c48c1d2 commit 89d826b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojobber/dojobber.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ def _dot_output(self, fmt='png'):
command,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
)
stdout, _ = proc.communicate(dot.write(self.graph))
)
stdout, _ = proc.communicate(dot.write(self.graph).encode())

if proc.returncode != 0:
raise RuntimeError(
Expand Down

0 comments on commit 89d826b

Please sign in to comment.