Skip to content

Commit 61f3a2d

Browse files
committed
fix for linting issues
1 parent 66522ab commit 61f3a2d

File tree

8 files changed

+2
-7
lines changed

8 files changed

+2
-7
lines changed

examples/sc2autosave.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ def run(args):
184184

185185
# We break out of this loop in batch mode and on KeyboardInterrupt
186186
while True:
187-
188187
# The file scan uses the arguments and the state to filter down to
189188
# only new (since the last sync time) files.
190189
for path in scan(args, state):

sc2reader/data/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def load_build(expansion, version):
478478
"76114",
479479
"77379",
480480
"80949",
481-
"89720"
481+
"89720",
482482
):
483483
lotv_builds[version] = load_build("LotV", version)
484484

sc2reader/engine/plugins/creeptracker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from collections import defaultdict
1818
from itertools import tee
1919

20+
2021
# The creep tracker plugin
2122
class CreepTracker:
2223
"""

sc2reader/readers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,6 @@ def trigger_ping_event(self, data):
21262126

21272127

21282128
class GameEventsReader_64469(GameEventsReader_38996):
2129-
21302129
# this function is exactly the same as command_event() from GameEventsReader_38996
21312130
# with the only change being that flags now has 26 bits instead of 25.
21322131
def command_event(self, data):

sc2reader/resources.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def __init__(self, file_object, filename=None, factory=None, **options):
4040

4141

4242
class Replay(Resource):
43-
4443
#: A nested dictionary of player => { attr_name : attr_value } for
4544
#: known attributes. Player 16 represents the global context and
4645
#: contains attributes like game speed.

sc2reader/scripts/sc2replayer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def main():
9494
# Allow specification of events to `show`
9595
# Loop through the events
9696
for event in events:
97-
9897
if (
9998
isinstance(event, CommandEvent)
10099
or isinstance(event, SelectionEvent)

sc2reader/scripts/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def _split_lines(self, text, width):
3535
main_indent = len(re.match(r"( *)", text).group(1))
3636
# Wrap each line individually to allow for partial formatting
3737
for line in text.splitlines():
38-
3938
# Get this line's indent and figure out what indent to use
4039
# if the line wraps. Account for lists of small variety.
4140
indent = len(re.match(r"( *)", line).group(1))

test_replays/test_replays.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ def test_hots_pids(self):
208208
"test_replays/2.0.0.24247/molten.SC2Replay",
209209
"test_replays/2.0.0.23925/Akilon Wastes.SC2Replay",
210210
]:
211-
212211
replay = sc2reader.load_replay(replayfilename)
213212
self.assertEqual(replay.expansion, "HotS")
214213
player_pids = {player.pid for player in replay.players if player.is_human}

0 commit comments

Comments
 (0)