Skip to content

Commit 021035f

Browse files
Apply formatting suggestions.
Co-authored-by: meeseeksdev[bot] <24485218+meeseeksdev[bot]@users.noreply.github.com>
1 parent fe9510f commit 021035f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

meeseeksdev/meeseeksbox/commands.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,12 @@ def parsepatch(patch):
117117
"""
118118
ranges = []
119119
for l in patch.splitlines():
120-
if not l.startswith('@@'):
120+
if not l.startswith("@@"):
121121
continue
122-
s = l.split('@@')[1].strip()
123-
ranges.append([int(x) for x in s.split(' ')[1].split(',')])
124-
return [(s, s+x-1) for s, x in ranges]
122+
s = l.split("@@")[1].strip()
123+
ranges.append([int(x) for x in s.split(" ")[1].split(",")])
124+
return [(s, s + x - 1) for s, x in ranges]
125+
125126

126127
def in_ranges(needle, haystack):
127128
n1, n2 = needle

0 commit comments

Comments
 (0)