time.clock() is removed in Python 3.8

Two more places where `time.clock()` is called. Adopt the imports accordingly.
This commit is contained in:
topic2k
2019-09-15 12:55:34 +02:00
parent 4a506f82a6
commit 873fd00a41
2 changed files with 10 additions and 4 deletions

View File

@@ -7,7 +7,10 @@ this is very old-style code: don't imitate it!
"""
from time import clock
try:
from time import process_time as clock
except ImportError:
from time import clock
import wx
print(wx.VERSION_STRING)
from numpy import *