fix bug of show image
authorOrakaro <nhatminh_179@hotmail.com>
Sun, 13 Jul 2014 09:51:37 +0000 (18:51 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Sun, 13 Jul 2014 09:51:37 +0000 (18:51 +0900)
rainbowstream/rainbow.py
setup.py

index 20c110f6b1fdf637deb6744f680bffdec81052dd..ecffa11ac32acdd208655dccc3636c9e97117f40 100644 (file)
@@ -490,7 +490,7 @@ def show():
         media = tweet['entities']['media']
         for m in media:
             res = requests.get(m['media_url'])
-            img = Image.open(StringIO(res.content))
+            img = Image.open(BytesIO(res.content))
             img.show()
     except:
         printNicely(red('Sorry I can\'t show this image.'))
index 4603d182f1a4ab43a25470d20150fe96ee2f119a..61b72eba86e477b97ca7079af0d53cea4dbfea29 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
-version = '0.3.0'
+version = '0.3.1'
 
 install_requires = [
     "python-dateutil",