Skip to content

Commit

Permalink
Initialize list with empty brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
bpepple committed Oct 28, 2020
1 parent febbcd5 commit 2411829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darkseid/filenameparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_issue_number(self, filename: str) -> Tuple[str, int, int]:
# the same positions as original filename

# make a list of each word and its position
word_list: List[Tuple[str, int, int]] = list()
word_list: List[Tuple[str, int, int]] = []
for match in re.finditer(r"\S+", filename):
word_list.append((match.group(0), match.start(), match.end()))

Expand Down

0 comments on commit 2411829

Please sign in to comment.