From 626860130f64c7680efca7eceacf8954596ff074 Mon Sep 17 00:00:00 2001 From: vunhat_minh Date: Thu, 7 Aug 2014 12:42:33 +0900 Subject: [PATCH] autopep8 --- rainbowstream/config.py | 7 ++++--- rainbowstream/rainbow.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rainbowstream/config.py b/rainbowstream/config.py index c2f2d5c..9cc2310 100644 --- a/rainbowstream/config.py +++ b/rainbowstream/config.py @@ -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] diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index d2caee3..b0e8e1d 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -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() -- 2.25.1