mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 01:42:56 +02:00
pysolfc: patch for Python 3.8.
This commit is contained in:
parent
29b8e166cb
commit
0890875d01
1 changed files with 15 additions and 0 deletions
15
srcpkgs/pysolfc/patches/e0c0e3cdb.patch
Normal file
15
srcpkgs/pysolfc/patches/e0c0e3cdb.patch
Normal 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
|
Loading…
Add table
Reference in a new issue