pysolfc: patch for Python 3.8.

This commit is contained in:
Leah Neukirchen 2019-12-24 15:55:36 +01:00
parent 29b8e166cb
commit 0890875d01

View file

@ -0,0 +1,15 @@
--- pysollib/mfxutil.py
+++ pysollib/mfxutil.py
@@ -143,7 +143,11 @@ def getprefdir(package):
# high resolution clock() and sleep()
-uclock = time.clock
+try:
+ uclock = time.perf_counter
+except Exception:
+ uclock = time.clock
+
usleep = time.sleep
if os.name == "posix":
uclock = time.time