diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-14 22:31:48 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-14 22:37:40 +0100 |
commit | 0fb08748e5285e5d4adc6135eec8889887a63299 (patch) | |
tree | 3a82c2899f33a8d4234b07799cff00865c8e141c /CAO_Cards.py | |
parent | ad12c67adcc8e3c0f29814b1b95959ac4b9f4a4d (diff) |
use a python package instead of just modules
The package is contained in the CAO/ folder.
server.py is still at the root of the repository though.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'CAO_Cards.py')
-rw-r--r-- | CAO_Cards.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/CAO_Cards.py b/CAO_Cards.py deleted file mode 100644 index 1feecef..0000000 --- a/CAO_Cards.py +++ /dev/null @@ -1,13 +0,0 @@ -class CAO_Cards(): - @staticmethod - def get_white_cards(lang): - ''' Read the file containing the white cards and return a list of cards ''' - with open('lang/' + lang + '/cards/white') as fd: - return [line.strip() for line in fd] - - @staticmethod - def get_black_cards(lang): - ''' Read the file containing the black cards and return a list of cards ''' - - with open('lang/' + lang + '/cards/black') as fd: - return [line.strip() for line in fd] |