Twitter Oauth message
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Mon, 14 Jul 2014 05:15:43 +0000 (14:15 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Mon, 14 Jul 2014 05:15:43 +0000 (14:15 +0900)
rainbowstream/pure_image.py
rainbowstream/rainbow.py
setup.py

index b3139bb18563a97bb9c8af8abf719f2c0c324bc4..f321797593cfe80c1e069665bb6ea6f599085071 100644 (file)
@@ -333,12 +333,12 @@ def image_to_display(path, start=None, length=None):
     height = min(height, IMAGE_MAX_HEIGHT)
 
     for y in xrange(height):
-        print ' ' * start,
+        sys.stdout.write(' ' * start)
         for x in xrange(width):
             p = i.getpixel((x, y))
             r, g, b = p[:3]
             pixel_print(rgb2short(r, g, b))
-        print ''
+        sys.stdout.write('\n')
 
 if __name__ == '__main__':
     image_to_display(sys.argv[1])
index ecffa11ac32acdd208655dccc3636c9e97117f40..8072114b313f66137efb40e01602f500d96c0e63 100644 (file)
@@ -1681,8 +1681,9 @@ def fly():
     except TwitterHTTPError:
         printNicely('')
         printNicely(
-            magenta("I'm afraid we have maximum connection problem with twitter right now :("))
-        printNicely(magenta("Let's try again later."))
+            magenta("Something wrong with Twitter Oauth right now :("))
+        printNicely(
+            magenta("Please delete ~/.rainbow_oauth and try again."))
         save_history()
         os.system('rm -rf rainbow.db')
         sys.exit()
index 5f31061857b2f1e1fec6edf963570eb48b66a4d6..294fd8672795dec3b2c9725f6edb180261ec376c 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
 from setuptools import setup, find_packages
 import sys
 
-version = '0.3.2'
+version = '0.3.4'
 
 install_requires = [
     "python-dateutil",