correct coding style - error E711
This commit is contained in:
parent
027c366e7e
commit
a42075fa78
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue