Skip to content

Commit

Permalink
fix: Accept binary input
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Oct 3, 2024
1 parent 123122d commit 83fe73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svgcheck/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def main():

tempfile_in_use = False
if len(args) < 1:
with tempfile.NamedTemporaryFile(delete=False, mode="w+t") as tmp_file:
data = sys.stdin.read()
with tempfile.NamedTemporaryFile(delete=False, mode="w+b") as tmp_file:
data = sys.stdin.buffer.read()
tmp_file.write(data)
source = tmp_file.name
tempfile_in_use = True
Expand Down

0 comments on commit 83fe73a

Please sign in to comment.