summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-09-05 23:58:06 +0200
committeremkael <emkael@tlen.pl>2015-09-13 01:19:39 +0200
commitc20c85f5f64c79fde4ccf983f2414823e6f960d7 (patch)
tree9fa6b979871fe6ba8145a628236844b7efb2b6d4
parent7a9b8f280f493e23cac12724b0a0a009d3788e94 (diff)
* traveller encoding fix
-rw-r--r--bidding_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bidding_data.py b/bidding_data.py
index 3394aeb..3373ca4 100644
--- a/bidding_data.py
+++ b/bidding_data.py
@@ -251,7 +251,7 @@ class JFRBidding:
board_text_path = path.splitext(tournament_file)[0] + '.txt'
with file(board_text_path, 'r+') as board_text:
board_text_content = bs4(
- board_text, 'lxml', from_encoding='iso-8859-2')
+ board_text, 'lxml')
for row in board_text_content.select('tr'):
cells = row.select('td')
# traveller table rows for specific score entries
@@ -284,7 +284,7 @@ class JFRBidding:
cells[3].append(bidding_link)
board_text.seek(0)
board_text.write(board_text_content.table.prettify(
- 'iso-8859-2', formatter='html'))
+ 'utf-8', formatter='html'))
board_text.truncate()
for unused_file in self.__bidding_files:
remove(unused_file)