Skip to content

Commit

Permalink
encode string
Browse files Browse the repository at this point in the history
  • Loading branch information
k-burt-uch committed Feb 10, 2025
1 parent cdf8267 commit af73894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sheepdog/utils/transforms/graph_to_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def get_delimited_template(entity_types, file_format, filename=TEMPLATE_NAME):
partname = "{}.{}".format(entity_type, file_format)
tarinfo = tarfile.TarInfo(name=partname)
tarinfo.size = len(content)
tar.addfile(tarinfo, io.BytesIO(content))
tar.addfile(tarinfo, io.BytesIO(str.encode(content)))

tar.close()
return tar_obj.getvalue()
Expand Down

0 comments on commit af73894

Please # to comment.