Skip to content

fix time.clock DeprecationWarning under python3.7#2266

Merged
cvium merged 2 commits intoFlexget:developfrom
chestm007:develop
Dec 11, 2018
Merged

fix time.clock DeprecationWarning under python3.7#2266
cvium merged 2 commits intoFlexget:developfrom
chestm007:develop

Conversation

@chestm007
Copy link
Copy Markdown
Contributor

Motivation for changes:

Arch isnt too great at running on older python versions 😄

Detailed changes:

  • replace all instances of time.clock with preferred_time which is either time.process_time if supported otherwise remains time.clock. This is detected by attempting to access time.process_time on module import and setting the module level variable preferred_clock accordingly

Addressed issues:

Log and/or tests output (preferably both):

i have log output in the linked issue of the behaviour before this patch, the DeprecationWarnings are no longer present after this patch is applied

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.

2 participants