Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sc2reader/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

from sc2reader.log_utils import loggable

try:
cmp # Python 2
except NameError:
cmp = lambda a, b: (a > b) - (a < b) # noqa Python 3

ABIL_LOOKUP = dict()
for entry in pkgutil.get_data('sc2reader.data', 'ability_lookup.csv').decode('utf8').split('\n'):
if not entry:
Expand Down