diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-11 22:01:14 +0200 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-11 22:01:14 +0200 |
commit | b1116fc001ecb06a4156d2eef97f792609754a6c (patch) | |
tree | f4a79a42c74aa384200996689de2076f7a1b3ff5 /cherrypy/process/plugins.py | |
parent | 2cc9300491aee2a1b79705eb623314decb0489bc (diff) | |
download | cherrypy-git-b1116fc001ecb06a4156d2eef97f792609754a6c.tar.gz |
PEP8fy codebase: eliminated E129 flake8 error
Diffstat (limited to 'cherrypy/process/plugins.py')
-rw-r--r-- | cherrypy/process/plugins.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py index 48708f51..2fddc0bf 100644 --- a/cherrypy/process/plugins.py +++ b/cherrypy/process/plugins.py @@ -131,11 +131,10 @@ class SignalHandler(object): is executing inside other process like in a CI tool (Buildbot, Jenkins). """ - if (self._original_pid != os.getpid() and - not os.isatty(sys.stdin.fileno())): - return True - else: - return False + return ( + self._original_pid != os.getpid() and + not os.isatty(sys.stdin.fileno()) + ) def subscribe(self): |