]> jfr.im git - z_archive/twitter.git/blobdiff - twitter/__init__.py
Don't crash with 'python -OO'.
[z_archive/twitter.git] / twitter / __init__.py
index 11bbdc538aa56c76ed6f038fde4b5a4664bec224..326c8f279841cb9b70f6aa545a36d5ca5f712b5c 100644 (file)
@@ -16,26 +16,26 @@ 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__ += """
@@ -52,7 +52,7 @@ Working with OAuth
 ------------------
 """
 
-__doc__ += dedent(oauth_doc)
+__doc__ += dedent(oauth_doc or "")
 
 __all__ = ["Twitter", "TwitterStream", "TwitterResponse", "TwitterError",
            "TwitterHTTPError", "NoAuth", "OAuth", "UserPassAuth",