Skip to content

Commit

Permalink
Documentation tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
braincore committed Sep 7, 2016
1 parent 397c2e1 commit 5cbb04c
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions dropbox/dropbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ def __init__(self,
:type session: :class:`requests.sessions.Session`
:param dict headers: Additional headers to add to requests.
:param Optional[float] timeout: Maximum duration in seconds that
client will wait when receiving data from server. After the timeout
the client will give up on connection. If `None`, client will
wait forever. Defaults to 30 seconds.
client will wait for any single packet from the
server. After the timeout the client will give up on
connection. If `None`, client will wait forever. Defaults
to 30 seconds.
"""
assert len(oauth2_access_token) > 0, \
'OAuth2 access token cannot be empty.'
Expand Down Expand Up @@ -215,10 +216,11 @@ def request(self,
validator specified by route.arg_type.
:param request_binary: String or file pointer representing the binary
payload. Use None if there is no binary payload.
:param Optional[float] timeout: Maximum duration in seconds that
client will wait when receiving data from server. After the timeout
the client will give up on connection. If `None`, client will
wait forever. Defaults to `None`.
:param Optional[float] timeout: Maximum duration in seconds
that client will wait for any single packet from the
server. After the timeout the client will give up on
connection. If `None`, client will wait forever. Defaults
to `None`.
:return: The route's result.
"""
host = route.attrs['host'] or 'api'
Expand Down Expand Up @@ -295,6 +297,11 @@ def request_json_object(self,
client will wait when receiving data from server. After the timeout
the client will give up on connection. If `None`, client will
wait forever. Defaults to `None`.
:param Optional[float] timeout: Maximum duration in seconds
that client will wait for any single packet from the
server. After the timeout the client will give up on
connection. If `None`, client will wait forever. Defaults
to `None`.
:return: The route's result as a JSON-serializable Python object.
"""
serialized_arg = json.dumps(request_arg)
Expand Down

0 comments on commit 5cbb04c

Please sign in to comment.