From: vunhat_minh Date: Mon, 14 Jul 2014 05:15:43 +0000 (+0900) Subject: Twitter Oauth message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e1241c711c531d4b98879a0189ee69e6a8bdc4f;p=rainbowstream.git Twitter Oauth message --- diff --git a/rainbowstream/pure_image.py b/rainbowstream/pure_image.py index b3139bb..f321797 100644 --- a/rainbowstream/pure_image.py +++ b/rainbowstream/pure_image.py @@ -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]) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index ecffa11..8072114 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -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() diff --git a/setup.py b/setup.py index 5f31061..294fd86 100644 --- 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",