autopep8
[rainbowstream.git] / rainbowstream / c_image.py
index f26cfcf1c5a471cc33300f9dcf2b84677a22de7f..a044e076e1f0ab3819824a7e849266f31a7bb88d 100644 (file)
@@ -79,18 +79,10 @@ 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')
 
-    # Old code for display one pixel on one terminal block
-    # for y in xrange(height):
-    #     sys.stdout.write(' ' * start)
-    #     for x in xrange(width):
-    #         p = i.getpixel((x, y))
-    #         pixel_print(p)
-    #     sys.stdout.write('\n')
-
 
 """
 For direct using purpose