summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-17 23:24:45 +0200
committeremkael <emkael@tlen.pl>2019-07-17 23:24:45 +0200
commitc0837425a7ba145b865cfe5bc67ab3b541ce05f8 (patch)
treef4394a219b01ca2fc4c4a1295d45208fcd4f0144
parent886f8f4c9de8e4433987ac2b3b6edcf021f7d309 (diff)
Python 2.x/3.x inter-compatibility
-rw-r--r--bcdd/PBNFile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcdd/PBNFile.py b/bcdd/PBNFile.py
index 16f4d6d..c538bb4 100644
--- a/bcdd/PBNFile.py
+++ b/bcdd/PBNFile.py
@@ -28,7 +28,7 @@ class PBNFile(object):
def write_board(self, board):
if self.output_file is None:
self.output_file = tempfile.NamedTemporaryFile(
- mode='w', encoding='utf-8', delete=False)
+ mode='w', delete=False)
for field in board.fields:
self.output_file.write(field.raw_field + '\n')
self.output_file.write('\n')