Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #426 time.clock() deprecated since python3.3 #427

Merged
merged 2 commits into from
Sep 9, 2020

Conversation

XayOn
Copy link

@XayOn XayOn commented Jul 24, 2020

This commit replaces all time.clock() references for
time.process_time().

https://docs.python.org/3/library/time.html#time.process_time
"Value (in fractional seconds) of the sum of the system and user CPU
time of the current process"

This commit replaces all time.clock() references for
time.process_time().

https://docs.python.org/3/library/time.html#time.process_time
"Value (in fractional seconds) of the sum of the system and user CPU
time of the current process"
xbmc 19 python library does not longer have an xbmc.abortRequested
property. This "fixes" the issue by removing it, yet it might cause
problems (The TODO that was previously set there stated that
Monitor().abortRequested() does not work as expected.
@XayOn
Copy link
Author

XayOn commented Jul 24, 2020

With this PR's changes I've managed to make it work on latest kodi Matrix.
I've been testing it on my docker matrix build ( https://github.com/XayOn/docker-kodi-beta ) wich is currently built for kodi commit xbmc/xbmc@25af320

I'll be using the add-on on Matrix from now on, @maloep let me know if I can help with something.

@maloep maloep merged commit ea55684 into maloep:Matrix Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants