Skip to content

Commit 402e560

Browse files
author
rob
committed
fix async docs
1 parent 287f77f commit 402e560

25 files changed

+28
-62
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ __pycache__/
1212
*.pyc
1313
*.pyo
1414
*~
15+
.venv

.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[MESSAGES CONTROL]
2-
disable=C,R,file-ignored,fixme,locally-disabled,protected-access,useless-else-on-loop
2+
disable=C,R,file-ignored,fixme,locally-disabled,protected-access,useless-else-on-loop,unnecessary-pass
33
enable=useless-suppression
44

55
[REPORTS]

docs/api/async.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
:mod:`dropbox.async` -- Async
2-
============================================
3-
.. automodule:: dropbox.async
1+
:mod:`dropbox.async_` -- Async
2+
==============================
3+
*As of Python 3.5,* ``async`` *is a reserved keyword. For versions of Python prior to 3.5, the objects documented can be imported from either* ``dropbox.async`` *or* ``dropbox.async_``. *For Python 3.5+, only* ``dropbox.async_`` *is supported.*
4+
5+
.. automodule:: dropbox.async_
46
:members:
57
:show-inheritance:
68
:special-members: __init__

docs/api/auth.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.auth` -- Auth
2-
============================================
2+
===========================
33
.. automodule:: dropbox.auth
44
:members:
55
:show-inheritance:

docs/api/common.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.common` -- Common
2-
============================================
2+
===============================
33
.. automodule:: dropbox.common
44
:members:
55
:show-inheritance:

docs/api/contacts.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.contacts` -- Contacts
2-
============================================
2+
===================================
33
.. automodule:: dropbox.contacts
44
:members:
55
:show-inheritance:

docs/api/dropbox.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.dropbox` -- Dropbox
2-
============================================
2+
=================================
33
.. automodule:: dropbox.dropbox
44
:members:
55
:show-inheritance:

docs/api/exceptions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.exceptions` -- Exceptions
2-
============================================
2+
=======================================
33
.. automodule:: dropbox.exceptions
44
:members:
55
:show-inheritance:

docs/api/file_properties.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.file_properties` -- File Properties
2-
============================================
2+
=================================================
33
.. automodule:: dropbox.file_properties
44
:members:
55
:show-inheritance:

docs/api/file_requests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.file_requests` -- File Requests
2-
============================================
2+
=============================================
33
.. automodule:: dropbox.file_requests
44
:members:
55
:show-inheritance:

docs/api/files.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.files` -- Files
2-
============================================
2+
=============================
33
.. automodule:: dropbox.files
44
:members:
55
:show-inheritance:

docs/api/index.rst

-37
This file was deleted.

docs/api/oauth.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.oauth` -- OAuth
2-
============================================
2+
=============================
33
.. automodule:: dropbox.oauth
44
:members:
55
:show-inheritance:

docs/api/paper.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.paper` -- Paper
2-
============================================
2+
=============================
33
.. automodule:: dropbox.paper
44
:members:
55
:show-inheritance:

docs/api/seen_state.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.seen_state` -- Seen State
2-
============================================
2+
=======================================
33
.. automodule:: dropbox.seen_state
44
:members:
55
:show-inheritance:

docs/api/sharing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.sharing` -- Sharing
2-
============================================
2+
=================================
33
.. automodule:: dropbox.sharing
44
:members:
55
:show-inheritance:

docs/api/team.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.team` -- Team
2-
============================================
2+
===========================
33
.. automodule:: dropbox.team
44
:members:
55
:show-inheritance:

docs/api/team_common.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.team_common` -- Team Common
2-
============================================
2+
=========================================
33
.. automodule:: dropbox.team_common
44
:members:
55
:show-inheritance:

docs/api/team_log.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.team_log` -- Team Log
2-
============================================
2+
===================================
33
.. automodule:: dropbox.team_log
44
:members:
55
:show-inheritance:

docs/api/team_policies.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.team_policies` -- Team Policies
2-
============================================
2+
=============================================
33
.. automodule:: dropbox.team_policies
44
:members:
55
:show-inheritance:

docs/api/users.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.users` -- Users
2-
============================================
2+
=============================
33
.. automodule:: dropbox.users
44
:members:
55
:show-inheritance:

docs/api/users_common.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:mod:`dropbox.users_common` -- Users Common
2-
============================================
2+
===========================================
33
.. automodule:: dropbox.users_common
44
:members:
55
:show-inheritance:

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
# General information about the project.
5656
project = u'Dropbox for Python'
57-
copyright = u'2015-2017, Dropbox, Inc.'
57+
copyright = u'2015-2019, Dropbox, Inc.'
5858

5959
# The version info for the project you're documenting, acts as replacement for
6060
# |version| and |release|, also used in various other places throughout the

example/back-up-and-restore/backup-and-restore-example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def select_revision():
8181
# Check that the access token is valid
8282
try:
8383
dbx.users_get_current_account()
84-
except AuthError as err:
84+
except AuthError:
8585
sys.exit("ERROR: Invalid access token; try re-generating an "
8686
"access token from the app console on the web.")
8787

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pypy3 = lint
1616
[flake8]
1717

1818
# See <https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes>
19-
ignore = E128,E301,E302,E305,E402,W503
19+
ignore = E128,E301,E302,E305,E402,W503,W504
2020
max-line-length = 100
2121

2222

0 commit comments

Comments
 (0)