Skip to content

Commit

Permalink
Fix W503 flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
k4nar committed Mar 19, 2015
1 parent 11a4e12 commit 02c0767
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions circus/plugins/resource_watcher.py
Expand Up @@ -153,8 +153,8 @@ def _process_index(self, index, stats):
if self.min_mem is not None:
under_percent = (self._min_percent and
stats['min_mem'] < self.min_mem)
under_value = (not self._min_percent
and stats['min_mem_abs'] < self.min_mem)
under_value = (not self._min_percent and
stats['min_mem_abs'] < self.min_mem)

if under_percent or under_value:
self.statsd.increment("_resource_watcher.%s.under_memory" %
Expand Down
4 changes: 2 additions & 2 deletions circus/tests/test_logging.py
Expand Up @@ -176,8 +176,8 @@ def logging_dictconfig_to_ini(config):
ini.add_section(section)
args = []
for key, value in sorted(handlers[handler].items()):
if (handlers[handler]["class"] == "logging.FileHandler"
and key == "filename"):
if (handlers[handler]["class"] == "logging.FileHandler" and
key == "filename"):
args.append(value)
else:
ini.set(section, key, value)
Expand Down
3 changes: 1 addition & 2 deletions circus/watcher.py
Expand Up @@ -263,8 +263,7 @@ def __init__(self, name, cmd, args=None, numprocesses=1, warmup_delay=0.,
"stdout_stream_conf", "on_demand",
"stderr_stream_conf", "max_age", "max_age_variance",
"close_child_stdout", "close_child_stderr",
"use_papa")
+ tuple(options.keys()))
"use_papa") + tuple(options.keys()))

if not working_dir:
# working dir hasn't been set
Expand Down

0 comments on commit 02c0767

Please sign in to comment.