autopep8
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Thu, 7 Aug 2014 03:42:33 +0000 (12:42 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Thu, 7 Aug 2014 03:42:33 +0000 (12:42 +0900)
rainbowstream/config.py
rainbowstream/rainbow.py

index c2f2d5cd9ddba696a49e2f6bfe25c1155dbbd85a..9cc2310af1209112296ee9506db7e196a48fe60d 100644 (file)
@@ -109,7 +109,7 @@ def delete_config(key):
     Delete a config key
     """
     path = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
-    try: 
+    try:
         data = load_config(path)
     except:
         raise Exception('Config file is messed up.')
@@ -133,8 +133,9 @@ def reload_config():
     """
     Reload config
     """
-    try: 
-        rainbow_config = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
+    try:
+        rainbow_config = os.path.expanduser("~") + \
+            os.sep + '.rainbow_config.json'
         data = load_config(rainbow_config)
         for d in data:
             c[d] = data[d]
index d2caee3ac2a2a67de3faaaf41b943ff4e6e8970f..b0e8e1d1cbc43cf0ede2c950a6a3f4c38d823b55 100644 (file)
@@ -193,7 +193,7 @@ def init(args):
     c['message_dict'] = []
     # Image on term
     c['IMAGE_ON_TERM'] = args.image_on_term
-    set_config('IMAGE_ON_TERM',str(c['IMAGE_ON_TERM']))
+    set_config('IMAGE_ON_TERM', str(c['IMAGE_ON_TERM']))
     # Mute dict
     c['IGNORE_LIST'] += build_mute_dict()