Skip to content

Commit

Permalink
Reversing previous changes made in issue #8. They make no sense. Upda…
Browse files Browse the repository at this point in the history
…te python instead.
  • Loading branch information
Janhouse committed Aug 20, 2013
1 parent b3259b4 commit 0bdc1d5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tespeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ def __init__(self, server = "", numTop = 0, servercount = 3, store = False, supp
self.unit=0

self.chunksize=chunksize
print "yolo"
print self.chunksize

if unit:
self.units="MiB"
Expand Down Expand Up @@ -234,7 +232,7 @@ def TestSingleLatency(self, dest_addr):
startTime = time.time()
try:
response = urllib2.urlopen(request, timeout = 5)
except (urllib2.URLError, e):
except urllib2.URLError, e:
error=1

if error==0:
Expand Down Expand Up @@ -325,7 +323,7 @@ def AsyncGet(self, conn, uri, num, th, d):
try:
response = urllib2.urlopen(request, timeout = 30);
size, start, end=self.ChunkRead(response, num, th, d, report_hook=self.ChunkReport)
#except (urllib2.URLError, e):
#except urllib2.URLError, e:
# print_debug("Failed downloading.\n")
except:
print_debug(' \r')
Expand All @@ -349,7 +347,7 @@ def AsyncPost(self, conn, uri, num, th, d):
try:
response = urllib2.urlopen(request, timeout = 30);
size, start, end=self.ChunkRead(response, num, th, d, 1, report_hook=self.ChunkReport)
#except (urllib2.URLError, e):
#except urllib2.URLError, e:
# print_debug("Failed uploading.\n")
except:
print_debug(' \r')
Expand Down

0 comments on commit 0bdc1d5

Please sign in to comment.