PEP8 style fix

This commit is contained in:
Paulus Schoutsen 2014-11-11 09:30:11 -08:00
parent 8ae9faf128
commit c856c117a8

View File

@ -415,10 +415,10 @@ class RequestHandler(SimpleHTTPRequestHandler):
status_code = HTTP_CREATED if is_new_state else HTTP_OK status_code = HTTP_CREATED if is_new_state else HTTP_OK
self._write_json(state.as_dict(), self._write_json(
state.as_dict(),
status_code=status_code, status_code=status_code,
location= location=rem.URL_API_STATES_ENTITY.format(entity_id))
rem.URL_API_STATES_ENTITY.format(entity_id))
else: else:
self._message( self._message(
"State of {} changed to {}".format(entity_id, new_state)) "State of {} changed to {}".format(entity_id, new_state))