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

Use time.time() more defensively #3191

Merged
merged 1 commit into from
Jan 22, 2020
Merged

Use time.time() more defensively #3191

merged 1 commit into from
Jan 22, 2020

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Jan 21, 2020

This is an attempt to address the (frankly weird) error from the logs in #3190, which appears to come down to Python getting confused when time.time() is imported over its own module name. Instead we import time when needed and call it as time.time().

Fixes #3190 (hopefully?)

This is an attempt to address the (frankly _weird_) error from the logs in #3190, which appears to come down to Python getting confused when `time.time()` is imported over its own module name. Instead we `import time` when needed and call it as `time.time()`.

Fixes #3190 (hopefully?)
@SuslikV
Copy link
Contributor

SuslikV commented Jan 22, 2020

It works for me (Windows). I think it is important fix for the release.

@ferdnyc
Copy link
Contributor Author

ferdnyc commented Jan 22, 2020

@SuslikV Thanks, merging! (And cherry-picking to release branch.)

@ferdnyc ferdnyc merged commit 79f3d76 into develop Jan 22, 2020
@ferdnyc ferdnyc deleted the ferdnyc-timetime branch January 22, 2020 18:47
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.

Project auto save exception
2 participants