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

Add py38 compatibility #1259

Merged
merged 4 commits into from
Oct 18, 2019
Merged

Add py38 compatibility #1259

merged 4 commits into from
Oct 18, 2019

Conversation

om26er
Copy link
Contributor

@om26er om26er commented Oct 18, 2019

Take 2 at #1193

@@ -463,7 +463,10 @@ def generate_serial_number():
# first call to this function, as a floating point number, based on the
# Win32 function QueryPerformanceCounter(). The resolution is typically
# better than one microsecond
_rtime = time.clock
if sys.version_info >= (3, 8):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perf_counter was added in Python 3.3. Why we can't use it for all Python 3.3+ line?
time.clock produces a warning on <Python 3.8

@oberstet oberstet merged commit 897c349 into crossbario:master Oct 18, 2019
@oberstet
Copy link
Contributor

perf_counter was added in Python 3.3. Why we can't use it for all Python 3.3+ line?

because we don't want to when on linux

@ivankravets
Copy link

@oberstet what do you mean?

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.

3 participants