summaryrefslogtreecommitdiff
path: root/src/bidding_data.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-09-05 23:58:06 +0200
committeremkael <emkael@tlen.pl>2015-09-05 23:58:06 +0200
commit46c5d33c9336919d90491bdc69f0f0d9c133a63e (patch)
tree0bf604c1238d94669bf2f75a7b0ced4f7393f214 /src/bidding_data.py
parent2bf15b4c2202bf998fd5f7bc1a157909f462f12f (diff)
* traveller encoding fix
Diffstat (limited to 'src/bidding_data.py')
-rw-r--r--src/bidding_data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bidding_data.py b/src/bidding_data.py
index 98762b6..70fa366 100644
--- a/src/bidding_data.py
+++ b/src/bidding_data.py
@@ -244,7 +244,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
@@ -277,7 +277,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)