From: vunhat_minh Date: Mon, 30 Jun 2014 03:29:28 +0000 (+0900) Subject: usage add X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d8e901a4aa4015c3ef0d7357e8d3e8d23e09c082;p=rainbowstream.git usage add --- diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 60e9890..86ec4be 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -550,7 +550,7 @@ def allretweet(): except: num = RETWEETS_SHOW_NUM # Get result and display - rt_ary = t.statuses.retweets(id=tid,count=num) + rt_ary = t.statuses.retweets(id=tid, count=num) if not rt_ary: printNicely(magenta('This tweet has no retweet.')) return @@ -983,8 +983,8 @@ def cal(): print date for line in rel: ary = line.split(' ') - ary = map(lambda x:on_grey(x) if x==today else grey(x),ary) - print ' '.join(ary) + ary = map(lambda x: on_grey(x) if x == today else grey(x), ary) + print ' '.join(ary) def help(): @@ -1029,7 +1029,7 @@ def help(): green('rt 12 ') + ' will retweet to tweet with ' + \ yellow('[id=12]') + '.\n' usage += s * 2 + \ - green('allrt 12 20 ') + ' list 20 newest retweet of the tweet with ' + \ + green('allrt 12 20 ') + ' will list 20 newest retweet of the tweet with ' + \ yellow('[id=12]') + '.\n' usage += s * 2 + green('rep 12 oops') + ' will reply "' + \ yellow('oops') + '" to tweet with ' + yellow('[id=12]') + '.\n' @@ -1103,9 +1103,9 @@ def help(): # Smart shell usage += '\n' usage += s + grey(u'\u266A' + ' Smart shell\n') - usage += s*2 + green('111111 * 9 / 7') + ' or any math expression ' + \ + usage += s * 2 + green('111111 * 9 / 7') + ' or any math expression ' + \ 'will be evaluate by Python interpreter.\n' - usage += s*2 + 'Even ' + green('cal') + ' will show the calendar' + \ + usage += s * 2 + 'Even ' + green('cal') + ' will show the calendar' + \ ' for current month.\n' # Screening