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 vstinner
Recipients Jon.Oberheide, neologix, sbt, vstinner
Date 2012-04-11.08:47:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwYCJ=ns8BXDGn4kzj1TTuS7aSnrFSvB-nqUakgQNkMQ=w@mail.gmail.com>
In-reply-to <1334128951.26.0.618416919937.issue14532@psf.upfronthosting.co.za>
Content
if response == digest:
can be replaced by:
    if sum(x^y for x, y in itertools.zip_longest(response, digest,
fillvalue=256)) == 0:

I hope that zip_longest() does not depend too much on response and digest.
History
Date User Action Args
2012-04-11 08:47:28vstinnersetrecipients: + vstinner, neologix, sbt, Jon.Oberheide
2012-04-11 08:47:27vstinnerlinkissue14532 messages
2012-04-11 08:47:27vstinnercreate