File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 7
7
- " 3.4"
8
8
- " 3.5"
9
9
- " 3.6"
10
+ - " 3.7"
11
+ - " 3.8"
10
12
# command to install dependencies
11
13
install :
12
14
- " pip install -r requirements.txt"
Original file line number Diff line number Diff line change 20
20
21
21
# Python 3:
22
22
try :
23
+ from time import process_time
23
24
from urllib .parse import urlparse , urlencode
24
25
from urllib .request import urlopen , Request
25
26
from urllib .error import HTTPError
29
30
import sys
30
31
# Python 2:
31
32
if sys .version_info < (3 , 0 ):
33
+ def process_time ():
34
+ return time .clock ()
32
35
def input (str ):
33
36
return raw_input (str )
34
37
@@ -214,7 +217,7 @@ def output(input_file, solver_file):
214
217
215
218
solution = ''
216
219
217
- start = time . clock ()
220
+ start = process_time ()
218
221
try :
219
222
solution = pkg .solve_it (load_input_data (input_file ))
220
223
except Exception as e :
@@ -224,7 +227,7 @@ def output(input_file, solver_file):
224
227
print (str (e ))
225
228
print ('' )
226
229
return 'Local Exception =('
227
- end = time . clock ()
230
+ end = process_time ()
228
231
229
232
if not (isinstance (solution , str ) or isinstance (solution , unicode )):
230
233
print ('Warning: the solver did not return a string. The given object will be converted with the str() method.' )
You can’t perform that action at this time.
0 commit comments