Skip to content

Commit

Permalink
Merge pull request #289 from behrtam/fix-pep8-series
Browse files Browse the repository at this point in the history
series: fix pep8 compliance (see #287)
  • Loading branch information
behrtam committed Jan 26, 2016
2 parents 508b8c7 + dcc5fe8 commit dbad4ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions series/example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
def slices(series, length):
numbers = [int(digit) for digit in series]
if not 1 <= length <= len(numbers):
raise ValueError("Invalid slice length for this series: "
+ str(length))
raise ValueError("Invalid slice length for this series: " + str(length))
return [numbers[i:i + length]
for i in range(len(numbers) - length + 1)]

0 comments on commit dbad4ee

Please sign in to comment.