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

Drop compat wrapper for TimeDelta.total_seconds() #5577

Merged
merged 1 commit into from Nov 9, 2017
Merged

Drop compat wrapper for TimeDelta.total_seconds() #5577

merged 1 commit into from Nov 9, 2017

Conversation

jdufresne
Copy link
Contributor

@jdufresne jdufresne commented Nov 9, 2017

TimeDelta.total_seconds() was introduced in Python 2.7 and 3.2. It is available on all supported Python versions.

https://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds
https://docs.python.org/3/library/datetime.html#datetime.timedelta.total_seconds

@carltongibson carltongibson added this to the v3.7.4 milestone Nov 9, 2017
Copy link
Collaborator

@carltongibson carltongibson left a comment

OK. Looks good. Thank you.

@carltongibson carltongibson merged commit f8e8381 into encode:master Nov 9, 2017
1 check passed
@jdufresne jdufresne deleted the total-seconds branch Nov 9, 2017
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this issue Nov 17, 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