adjust message
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Wed, 10 Sep 2014 03:06:35 +0000 (12:06 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Wed, 10 Sep 2014 03:06:35 +0000 (12:06 +0900)
rainbowstream/rainbow.py

index 9c88fc82eed1a69c59a83314a4508244a30d858e..6a565f9fb2bcb48864a25e5b9ef9ce52daf8278e 100644 (file)
@@ -124,16 +124,17 @@ def upgrade_center():
     Check latest and notify to upgrade
     """
     try:
-        current = pkg_resources.get_distribution("rainbowstream").version 
+        current = pkg_resources.get_distribution("rainbowstream").version
         url = 'https://raw.githubusercontent.com/DTVD/rainbowstream/master/setup.py'
-        readme = requests.get(url).content 
+        readme = requests.get(url).content
         latest = readme.split("version = \'")[1].split("\'")[0]
         if current != latest:
-            notice =  light_magenta('RainbowStream latest version is ') 
+            notice = light_magenta('RainbowStream latest version is ')
             notice += light_green(latest)
             notice += light_magenta(' while your current version is ')
             notice += light_yellow(current) + '\n'
-            notice += light_magenta('You should upgrade with "pip install -U rainbowstream".')
+            notice += light_magenta('You should upgrade with ')
+            notice += light_green('pip install -U rainbowstream')
             printNicely(notice)
     except:
         pass