autopep8
authorOrakaro <nhatminh_179@hotmail.com>
Mon, 4 Aug 2014 15:22:42 +0000 (00:22 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Mon, 4 Aug 2014 15:22:42 +0000 (00:22 +0900)
rainbowstream/rainbow.py

index 9e94fb8be49c3df5dfdcd941f4118ebecf1ff6db..0afa32f87254661d8517eb1834809bf041bd6ecc 100644 (file)
@@ -1446,7 +1446,7 @@ def help():
         d.get(
             g['stuff'].strip(),
             lambda: printNicely(red('No such command.'))
         d.get(
             g['stuff'].strip(),
             lambda: printNicely(red('No such command.'))
-            )()
+        )()
     else:
         printNicely(usage)
 
     else:
         printNicely(usage)
 
@@ -1715,14 +1715,16 @@ def stream(domain, args, name='Rainbow Stream'):
                 )
                 # Current readline buffer
                 current_buffer = readline.get_line_buffer().strip()
                 )
                 # Current readline buffer
                 current_buffer = readline.get_line_buffer().strip()
-                # There is an unexpected behaviour in MacOSX readline
-                # After completely delete a word after typing it
-                # somehow readline buffer still contains the 1st character of that word
+                # There is an unexpected behaviour in MacOSX readline:
+                # after completely delete a word after typing it,
+                # somehow readline buffer still contains
+                # the 1st character of that word
                 if g['previous_cmd'] != current_buffer:
                     if len(current_buffer) == 1:
                         current_buffer = ''
                         g['OSX_readline_bug'] = True
                 if g['previous_cmd'] != current_buffer:
                     if len(current_buffer) == 1:
                         current_buffer = ''
                         g['OSX_readline_bug'] = True
-                    sys.stdout.write(g['decorated_name'](c['PREFIX']) + current_buffer)
+                    sys.stdout.write(
+                        g['decorated_name'](c['PREFIX']) + current_buffer)
                     sys.stdout.flush()
             elif tweet.get('direct_message'):
                 print_message(tweet['direct_message'], check_semaphore=True)
                     sys.stdout.flush()
             elif tweet.get('direct_message'):
                 print_message(tweet['direct_message'], check_semaphore=True)