File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 36
36
dist : xenial
37
37
sudo : true
38
38
env : TACKPY=false
39
+ - python : 3.8
40
+ dist : xenial
41
+ sudo : true
42
+ env : TACKPY=false
39
43
- python : 2.7
40
44
env : TACKPY=true
41
45
- python : 3.4
Original file line number Diff line number Diff line change 39
39
'Programming Language :: Python :: 3.5' ,
40
40
'Programming Language :: Python :: 3.6' ,
41
41
'Programming Language :: Python :: 3.7' ,
42
+ 'Programming Language :: Python :: 3.8' ,
42
43
'Topic :: Security :: Cryptography' ,
43
44
'Topic :: Software Development :: Libraries :: Python Modules' ,
44
45
'Topic :: System :: Networking'
Original file line number Diff line number Diff line change 15
15
import os
16
16
import os .path
17
17
import socket
18
- import time
18
+ import timeit
19
19
import getopt
20
20
from tempfile import mkstemp
21
21
try :
@@ -476,10 +476,10 @@ def connect():
476
476
connection .handshakeClientCert (settings = settings )
477
477
print ("%s %s:" % (connection .getCipherName (), connection .getCipherImplementation ()), end = ' ' )
478
478
479
- startTime = time . clock ()
479
+ startTime = timeit . default_timer ()
480
480
connection .write (b"hello" * 10000 )
481
481
h = connection .read (min = 50000 , max = 50000 )
482
- stopTime = time . clock ()
482
+ stopTime = timeit . default_timer ()
483
483
if stopTime - startTime :
484
484
print ("100K exchanged at rate of %d bytes/sec" % int (100000 / (stopTime - startTime )))
485
485
else :
You can’t perform that action at this time.
0 commit comments