This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Peter.Waller, Sam.Breese, berker.peksag, python-dev, sbt, serhiy.storchaka
Date 2017-01-02.06:36:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483338996.52.0.245975515271.issue15812@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2017-01-02 06:36:36serhiy.storchakasetrecipients: + serhiy.storchaka, Peter.Waller, python-dev, sbt, berker.peksag, Sam.Breese
2017-01-02 06:36:36serhiy.storchakasetmessageid: <1483338996.52.0.245975515271.issue15812@psf.upfronthosting.co.za>
2017-01-02 06:36:36serhiy.storchakalinkissue15812 messages
2017-01-02 06:36:36serhiy.storchakacreate