X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=rainbowstream%2Frainbow.py;h=3a558e0d7e57f608d0637b3945f94c63b77f41d7;hb=72b9e670b1b7d4285494fca22fe39dcea66feb44;hp=ba811b84f10fd4075dfc87e12927c70fb7cae1d2;hpb=b2b933a939fc0a10b2a6300089ac2a72d2cfb17b;p=rainbowstream.git diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index ba811b8..3a558e0 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -1,6 +1,10 @@ """ Colorful user's timeline stream """ +from __future__ import print_function +from multiprocessing import Process +from dateutil import parser + import os import os.path import sys @@ -9,10 +13,6 @@ import argparse import time import datetime -from __future__ import print_function -from multiprocessing import Process -from dateutil import parser - from twitter.stream import TwitterStream, Timeout, HeartbeatTimeout, Hangup from twitter.api import * from twitter.oauth import OAuth, read_token_file @@ -292,7 +292,7 @@ def help(): """ usage = ''' Hi boss! I'm ready to serve you right now! - ---------------------------------------------------- + ------------------------------------------------------------- "home" will show your timeline. "home 7" will show 7 tweet. "view @bob" will show your friend @bob's home. "t oops" will tweet "oops" immediately. @@ -305,7 +305,7 @@ def help(): "h" will show this help again. "c" will clear the terminal. "q" will exit. - ---------------------------------------------------- + ------------------------------------------------------------- Have fun and hang tight! ''' printNicely(usage) @@ -383,8 +383,6 @@ def stream(): # The Logo ascii_art() - g['stuff'] = '1' - home() # These arguments are optional: stream_args = dict( timeout=args.timeout,