diff options
author | Freeyorp <TheFreeYorp+git@gmail.com> | 2024-06-05 20:29:36 +0000 |
---|---|---|
committer | Freeyorp <TheFreeYorp+git@gmail.com> | 2024-06-05 23:57:13 +0000 |
commit | c33d3f8efc280a2c4e3e440d065360094151c331 (patch) | |
tree | 33dc382a3e88cdde38e97558069ab94b3e7d77f5 | |
parent | 9903d45c343fe51309075674c96b4411b6e1a002 (diff) | |
download | tmwa-c33d3f8efc280a2c4e3e440d065360094151c331.tar.gz tmwa-c33d3f8efc280a2c4e3e440d065360094151c331.tar.bz2 tmwa-c33d3f8efc280a2c4e3e440d065360094151c331.tar.xz tmwa-c33d3f8efc280a2c4e3e440d065360094151c331.zip |
python3: Add explicit encoding='utf-8' for python3.6
-rwxr-xr-x | tools/protocol.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/protocol.py b/tools/protocol.py index b0d46a4..c4c8657 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -84,7 +84,7 @@ class OpenWrite(object): self.filename = filename def __enter__(self): - self.handle = open(self.filename + '.tmp', 'w') + self.handle = open(self.filename + '.tmp', 'w', encoding='utf-8') return self.handle def __exit__(self, ty, v, tb): |