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 75787532890f68f5165e580177805e71cb4244cf..a044e076e1f0ab3819824a7e849266f31a7bb88d 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 578754f12ce6ae0ba83f83a01a352e2234059d66..e7eede6a765dd1dacd6e3ff3a61863f031e7c8b1 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: