printNicely(' '.join(ary))
+def check_config():
+ """
+ Check if config is changed
+ """
+ changed = False
+ data = get_all_config()
+ for key in data:
+ if data[key] != c[key]:
+ changed = True
+ if changed:
+ reload_config()
+
+
def check_theme():
"""
Check current theme and update if necessary
"""
check_theme()
+ check_config()
# Retrieve tweet
tid = t['id']
text = t['text']
# Highlight keyword
tweet = ' '.join(tweet)
if keyword:
- roj = re.search(keyword,tweet,re.IGNORECASE)
+ roj = re.search(keyword, tweet, re.IGNORECASE)
if roj:
occur = roj.group()
ary = tweet.split(occur)