X-Git-Url: https://jfr.im/git/z_archive/twitter.git/blobdiff_plain/51e0b8f18c733f6095d76c39ba80e8886f8235a7..30af6c0f49cd4a11409f0ff1d78dab696e9c7749:/twitter/__init__.py diff --git a/twitter/__init__.py b/twitter/__init__.py index 151f346..326c8f2 100644 --- a/twitter/__init__.py +++ b/twitter/__init__.py @@ -12,29 +12,30 @@ from .api import Twitter, TwitterError, TwitterHTTPError, TwitterResponse from .auth import NoAuth, UserPassAuth from .oauth import (OAuth, read_token_file, write_token_file, __doc__ as oauth_doc) +from .oauth2 import OAuth2 from .stream import TwitterStream from .oauth_dance import oauth_dance -# Who needs Sphinx? Not me! +__doc__ = __doc__ or "" __doc__ += """ The Twitter class ----------------- """ -__doc__ += dedent(Twitter.__doc__) +__doc__ += dedent(Twitter.__doc__ or "") __doc__ += """ The TwitterStream class ----------------------- """ -__doc__ += dedent(TwitterStream.__doc__) +__doc__ += dedent(TwitterStream.__doc__ or "") __doc__ += """ Twitter Response Objects ------------------------ """ -__doc__ += dedent(TwitterResponse.__doc__) +__doc__ += dedent(TwitterResponse.__doc__ or "") __doc__ += """ @@ -51,8 +52,8 @@ Working with OAuth ------------------ """ -__doc__ += dedent(oauth_doc) +__doc__ += dedent(oauth_doc or "") __all__ = ["Twitter", "TwitterStream", "TwitterResponse", "TwitterError", "TwitterHTTPError", "NoAuth", "OAuth", "UserPassAuth", - "read_token_file", "write_token_file", "oauth_dance"] + "read_token_file", "write_token_file", "oauth_dance", "OAuth2"]