autopep8
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 31 Jul 2015 06:19:42 +0000 (15:19 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Fri, 31 Jul 2015 06:19:42 +0000 (15:19 +0900)
rainbowstream/c_image.py
rainbowstream/rainbow.py

index 7578753..a044e07 100644 (file)
@@ -79,7 +79,7 @@ def image_to_display(path, start=None, length=None):
         for x in xrange(width):
             y = real_y * 2
             p0 = i.getpixel((x, y))
-            p1 = i.getpixel((x, y+1))
+            p1 = i.getpixel((x, y + 1))
             block_print(p1, p0)
         sys.stdout.write('\n')
 
index 578754f..e7eede6 100644 (file)
@@ -44,7 +44,7 @@ def parse_arguments():
     parser.add_argument(
         '-s',
         '--stream',
-             default="mine",
+        default="mine",
         help='Default stream after program start. (Default: mine)')
     parser.add_argument(
         '-to',
@@ -657,7 +657,7 @@ def urlopen():
             return
         else:
             for url in urls:
-                expanded_url = url['expanded_url'] 
+                expanded_url = url['expanded_url']
                 webbrowser.open(expanded_url)
     except:
         debug_option()
@@ -2231,7 +2231,7 @@ def fly():
 
     # Spawn stream thread
     target = args.stream.split()[0]
-    if target == 'mine' :
+    if target == 'mine':
         spawn_personal_stream(args)
     else:
         try: