Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Correct time comparison in s3.py, get_url #47

Merged
merged 1 commit into from May 12, 2015

Conversation

SofiaMargariti
Copy link
Contributor

As it is now, in the case of temporary credentials, there is an inconsistent comparison between seconds which has a unix timestamp value and expire_after which is an arbitrary number of seconds. As a result if seconds < expire_after: always returns False and the expiration time does not get updated correctly. This commit fixes that (cc @stevearc).

@coveralls
Copy link

Coverage Status

Coverage remained the same at 89.79% when pulling a88928b on SofiaMargariti:time_comparison into cffd577 on mathcamp:master.

@stevearc
Copy link
Owner

Great find! Thanks for the PR!

stevearc added a commit that referenced this pull request May 12, 2015
Correct time comparison in s3.py, get_url
@stevearc stevearc merged commit 90f2ca0 into stevearc:master May 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants