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])
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()
from setuptools import setup, find_packages
import sys
-version = '0.3.2'
+version = '0.3.4'
install_requires = [
"python-dateutil",