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: