Show More
@@ -635,7 +635,7 b' def continuity(url):' | |||
|
635 | 635 | fo = urllib2.urlopen(url) |
|
636 | 636 | foo = fo.read() |
|
637 | 637 | fo.close() |
|
638 |
m = md5 |
|
|
638 | m = md5(foo) | |
|
639 | 639 | print format % ('normal urllib', m.hexdigest()) |
|
640 | 640 | |
|
641 | 641 | # now install the keepalive handler and try again |
@@ -645,7 +645,7 b' def continuity(url):' | |||
|
645 | 645 | fo = urllib2.urlopen(url) |
|
646 | 646 | foo = fo.read() |
|
647 | 647 | fo.close() |
|
648 |
m = md5 |
|
|
648 | m = md5(foo) | |
|
649 | 649 | print format % ('keepalive read', m.hexdigest()) |
|
650 | 650 | |
|
651 | 651 | fo = urllib2.urlopen(url) |
@@ -656,7 +656,7 b' def continuity(url):' | |||
|
656 | 656 | foo = foo + f |
|
657 | 657 | else: break |
|
658 | 658 | fo.close() |
|
659 |
m = md5 |
|
|
659 | m = md5(foo) | |
|
660 | 660 | print format % ('keepalive readline', m.hexdigest()) |
|
661 | 661 | |
|
662 | 662 | def comp(N, url): |
General Comments 0
You need to be logged in to leave comments.
Login now