summaryrefslogtreecommitdiff
path: root/swiftstory
diff options
context:
space:
mode:
Diffstat (limited to 'swiftstory')
-rw-r--r--swiftstory/Cards.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/swiftstory/Cards.py b/swiftstory/Cards.py
index a2160a9..3d314c3 100644
--- a/swiftstory/Cards.py
+++ b/swiftstory/Cards.py
@@ -5,12 +5,12 @@ class Cards:
@staticmethod
def get_white_cards(lang):
''' Read the file containing the white cards and return a list of cards '''
- with open('usr/share/swiftstory/lang/' + lang + '/cards/white.json') as fh:
+ with open('usr/share/swiftstory/lang/' + lang + '/cards/white.json', encoding='utf-8') as fh:
return json.load(fh)
@staticmethod
def get_black_cards(lang):
''' Read the file containing the black cards and return a list of cards '''
- with open('usr/share/swiftstory/lang/' + lang + '/cards/black.json') as fh:
+ with open('usr/share/swiftstory/lang/' + lang + '/cards/black.json', encoding='utf-8') as fh:
return json.load(fh)