mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
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:
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user