Fixed another str/bytes issue.

- Legacy-Id: 16344
This commit is contained in:
Henrik Levkowetz 2019-06-30 21:00:38 +00:00
parent ff6997df2b
commit aad1d0f1e5

View file

@ -708,7 +708,7 @@ def dependencies(request, acronym, group_type=None, output_type="pdf"):
pipe("%s -f -l 10 -o %s %s" % (settings.UNFLATTEN_BINARY, unflatname, dotname))
pipe("%s -T%s -o %s %s" % (settings.DOT_BINARY, output_type, outname, unflatname))
outhandle = open(outname, "r")
outhandle = open(outname, "rb")
out = outhandle.read()
outhandle.close()