Serhiy Storchaka added the comment:
start is bounded to 0 twice.
start = max(start, 0)
start = max(0, min(start, len(lines) - context))
The first line can be just removed. Or two above lines can be rewritten as:
start = min(start, len(lines) - context)
start = max(start, 0)
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15812>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com