summaryrefslogtreecommitdiffstats
path: root/py3status/__init__.py
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2015-03-26 11:50:08 +0100
committerUltrabug <ultrabug@gentoo.org>2015-03-26 11:50:08 +0100
commitf942440ed07e871e980681ce435d6addf4a8ac81 (patch)
tree949ee6093a559a26b5a8b07cf798499ffc540f7d /py3status/__init__.py
parente54319e70db5af9611726d9afa53aae15e93814c (diff)
pep8 compliance
Diffstat (limited to 'py3status/__init__.py')
-rwxr-xr-xpy3status/__init__.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py
index 2027882..ad5c450 100755
--- a/py3status/__init__.py
+++ b/py3status/__init__.py
@@ -347,7 +347,7 @@ class I3status(Thread):
# add mendatory items in i3status time format wrt issue #18
time_fmt = time_format
for fmt in ['%Y', '%m', '%d']:
- if not fmt in time_format:
+ if fmt not in time_format:
time_fmt = '{} {}'.format(time_fmt, fmt)
i3s_time = '{} {}'.format(
i3s_time, datetime.now().strftime(fmt)
@@ -636,7 +636,7 @@ class Events(Thread):
"""
Force a cache expiration for all the methods of the given module.
- We rate limit the i3status refresh to 100ms for obvious abusive behavior.
+ We rate limit the i3status refresh to 100ms.
"""
module = self.modules.get(module_name)
if module is not None:
@@ -1040,7 +1040,7 @@ class Module(Thread):
raise KeyError('missing "name" key in response')
# validate the response
- if not 'full_text' in result:
+ if 'full_text' not in result:
raise KeyError('missing "full_text" key in response')
# initialize method object
@@ -1148,7 +1148,9 @@ class Py3statusWrapper():
else:
# if none of the default files exists, we will default
# to ~/.i3/i3status.conf
- i3status_config_file_default = '{}/.i3/i3status.conf'.format(home_path)
+ i3status_config_file_default = '{}/.i3/i3status.conf'.format(
+ home_path
+ )
# command line options
parser = argparse.ArgumentParser(