Skip to content

Commit

Permalink
Drop comments replicating docstring info.
Browse files Browse the repository at this point in the history
Incorporates feedback from @dhermes.
  • Loading branch information
tseaver committed Oct 16, 2014
1 parent 0f3828a commit 84e181e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gcloud/storage/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,10 @@ def _get_expiration_seconds(expiration):
:type expiration: int, long, datetime.datetime, datetime.timedelta
:param expiration: When the signed URL should expire.
"""
# expiration can be an absolute timestamp (int, long),
# an absolute time (datetime.datetime),
# or a relative time (datetime.timedelta).
# We should convert all of these into an absolute timestamp.
:rtype: int
:returns: a timestamp as an absolute number of seconds.
"""

# If it's a timedelta, add it to `now` in UTC.
if isinstance(expiration, datetime.timedelta):
Expand Down

0 comments on commit 84e181e

Please sign in to comment.