Skip to content

Commit 874cc5e

Browse files
committed
Formatting fixes.
1 parent c51cf08 commit 874cc5e

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

sc2reader/constants.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
}
5959

6060

61-
6261
GAME_SPEED_FACTOR = {
6362
'Slower': 0.6,
6463
'Slow': 0.8,
@@ -75,14 +74,15 @@
7574
'XX': 'Public Test',
7675
}
7776

77+
7878
GATEWAY_LOOKUP = {
79-
0:'',
80-
1:'us',
81-
2:'eu',
82-
3:'kr',
83-
5:'cn',
84-
6:'sea',
85-
98:'xx',
79+
0: '',
80+
1: 'us',
81+
2: 'eu',
82+
3: 'kr',
83+
5: 'cn',
84+
6: 'sea',
85+
98: 'xx',
8686
}
8787

8888
COLOR_CODES = {
@@ -105,7 +105,7 @@
105105
'000000': 'Black',
106106
}
107107

108-
COLOR_CODES_INV = dict(zip(COLOR_CODES.values(),COLOR_CODES.keys()))
108+
COLOR_CODES_INV = dict(zip(COLOR_CODES.values(), COLOR_CODES.keys()))
109109

110110
REGIONS = {
111111
# United States
@@ -153,9 +153,11 @@
153153
}
154154

155155

156-
import pkgutil, json
156+
import json
157+
import pkgutil
158+
157159
attributes_json = pkgutil.get_data('sc2reader.data', 'attributes.json')
158160
attributes_dict = json.loads(attributes_json)
159161
LOBBY_PROPERTIES = dict()
160-
for key, value in attributes_dict.get('attributes',dict()).items():
162+
for key, value in attributes_dict.get('attributes', dict()).items():
161163
LOBBY_PROPERTIES[int(key)] = value

0 commit comments

Comments
 (0)