From a42075fa783ae7f07b78fcefc9ece181abd3761c Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Tue, 13 Feb 2018 21:36:56 +0100 Subject: [PATCH] correct coding style - error E711 --- pymanager/manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymanager/manager.py b/pymanager/manager.py index adb9ffb..07c0c62 100755 --- a/pymanager/manager.py +++ b/pymanager/manager.py @@ -197,7 +197,7 @@ class ManageHttpRequest(http.server.SimpleHTTPRequestHandler): def _command_log(self): """ sub request log (send log on specific process) """ msgjson = self._extract_input_data() - if msgjson == None: + if msgjson is None: return logging.debug(msgjson) @@ -276,7 +276,7 @@ class ManageHttpRequest(http.server.SimpleHTTPRequestHandler): def _send_action(self): """ send specific action on one program """ msgjson = self._extract_input_data() - if msgjson == None: + if msgjson is None: return logging.debug(msgjson) @@ -316,7 +316,7 @@ class ManageHttpRequest(http.server.SimpleHTTPRequestHandler): :param str command: command (START, STOP, STATUS, ... ) """ msgjson = self._extract_input_data() - if msgjson == None: + if msgjson is None: return if 'name' not in msgjson: