Codebase list pysolfc / dc83a7f
debian/patches/python3.8: Don't use the removed time.clock() anymore. Thanks to Matthias Klose. Closes: #950208 Juhani Numminen 4 years ago
2 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Description: pysolfc uses time.clock, removed in python3.8.
1 Origin: https://github.com/shlomif/PySolFC/commit/e0c0e3cdbe91f049c26c44547d728a7357d2862c#diff-86b451de571f92396b146cd6a69836e9
2 Forwarded: https://github.com/shlomif/PySolFC/issues/145
3
4 --- a/pysollib/mfxutil.py
5 +++ b/pysollib/mfxutil.py
6 @@ -143,7 +143,11 @@
7
8
9 # high resolution clock() and sleep()
10 -uclock = time.clock
11 +try:
12 + uclock = time.perf_counter
13 +except Exception:
14 + uclock = time.clock
15 +
16 usleep = time.sleep
17 if os.name == "posix":
18 uclock = time.time
11 configobj
22 desktop
33 directories
4 python3.8