##// END OF EJS Templates
keepalive: fix how md5 is used...
Mike Hommey -
r22505:232d437a stable
parent child Browse files
Show More
@@ -635,7 +635,7 b' def continuity(url):'
635 fo = urllib2.urlopen(url)
635 fo = urllib2.urlopen(url)
636 foo = fo.read()
636 foo = fo.read()
637 fo.close()
637 fo.close()
638 m = md5.new(foo)
638 m = md5(foo)
639 print format % ('normal urllib', m.hexdigest())
639 print format % ('normal urllib', m.hexdigest())
640
640
641 # now install the keepalive handler and try again
641 # now install the keepalive handler and try again
@@ -645,7 +645,7 b' def continuity(url):'
645 fo = urllib2.urlopen(url)
645 fo = urllib2.urlopen(url)
646 foo = fo.read()
646 foo = fo.read()
647 fo.close()
647 fo.close()
648 m = md5.new(foo)
648 m = md5(foo)
649 print format % ('keepalive read', m.hexdigest())
649 print format % ('keepalive read', m.hexdigest())
650
650
651 fo = urllib2.urlopen(url)
651 fo = urllib2.urlopen(url)
@@ -656,7 +656,7 b' def continuity(url):'
656 foo = foo + f
656 foo = foo + f
657 else: break
657 else: break
658 fo.close()
658 fo.close()
659 m = md5.new(foo)
659 m = md5(foo)
660 print format % ('keepalive readline', m.hexdigest())
660 print format % ('keepalive readline', m.hexdigest())
661
661
662 def comp(N, url):
662 def comp(N, url):
General Comments 0
You need to be logged in to leave comments. Login now