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 20c110f..ecffa11 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 4603d18..61b72eb 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",