http.client: Reduce performance impact by assertion
authorMichael Hanselmann <hansmi@google.com>
Wed, 14 Sep 2011 15:17:54 +0000 (17:17 +0200)
committerMichael Hanselmann <hansmi@google.com>
Tue, 27 Sep 2011 11:47:29 +0000 (13:47 +0200)
commita3c10d31c77aece45da31748badbf26516d09cca
tree4f7b378c8d9e2f8a027009060ab85892701662c7
parent00267bfe4642441afcfb292f9350d97e4ec205a5
http.client: Reduce performance impact by assertion

Call dict.values once instead of N times.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/http/client.py