From a27960682014fddc4d532caeeae3591d9f8b17aa Mon Sep 17 00:00:00 2001 From: Hg Date: Thu, 8 Oct 2020 22:34:44 +0200 Subject: [PATCH] use bytes when copying svg file --- svg-to-dia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg-to-dia.py b/svg-to-dia.py index c45fa11..20fe8ac 100755 --- a/svg-to-dia.py +++ b/svg-to-dia.py @@ -113,7 +113,7 @@ def main(): ]).decode().split()) new_path = pshapes.joinpath(f"{svg_file.stem}.svg") - new_path.write_text(svg_file.read_text()) + new_path.write_bytes(svg_file.read_bytes()) print(f"wrote {new_path}") xshape = build_shape(svg_file, width, height)