Skip to content

Commit 0373145

Browse files
committed
Fix comments to make pep8 happy.
1 parent 0b24bb1 commit 0373145

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

toolz/itertoolz.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,13 +721,14 @@ def partition_all(n, seq):
721721
prev = item
722722
if prev[-1] is no_pad:
723723
try:
724-
# If seq defines __len__, then we can quickly calculate where no_pad starts
724+
# If seq defines __len__, then
725+
# we can quickly calculate where no_pad starts
725726
yield prev[:len(seq) % n]
726727
except TypeError:
727728
# Get first index of no_pad without using .index()
728729
# https://github.com/pytoolz/toolz/issues/387
729-
# We can employ modified binary search here to speed things up from O(n) to O(log n)
730-
# Binary search from CPython's bisect module, modified for identity testing.
730+
# Binary search from CPython's bisect module,
731+
# modified for identity testing.
731732
lo, hi = 0, n
732733
while lo < hi:
733734
mid = (lo + hi) // 2

0 commit comments

Comments
 (0)