correct coding style - error E711

This commit is contained in:
AleaJactaEst 2018-02-13 21:36:56 +01:00
parent 027c366e7e
commit a42075fa78

View file

@ -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: