summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-01-23 12:16:50 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-01-23 12:16:50 -0500
commitb7fca9bc169be788bb6a55819e2dab923a6e03d4 (patch)
tree7d3f889a1fe1fd6742ad9e71a38a9106a70fc11a
parentab404fa2f815e9cae546d700d5280600bf990e26 (diff)
downloadphosphor-rest-server-b7fca9bc169be788bb6a55819e2dab923a6e03d4.zip
phosphor-rest-server-b7fca9bc169be788bb6a55819e2dab923a6e03d4.tar.gz
module: pep8 fixes
A couple pep8 errors found their way in. Change-Id: I31c1de3b2bc92b20a809b9c2638df0d83c2b2ea3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--module/obmc/wsgi/apps/rest_dbus.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py
index 3d056fb..f172cdc 100644
--- a/module/obmc/wsgi/apps/rest_dbus.py
+++ b/module/obmc/wsgi/apps/rest_dbus.py
@@ -367,7 +367,7 @@ class MethodHandler(RouteHandler):
except dbus.exceptions.DBusException, e:
paramlist = []
- if e.get_dbus_name() == DBUS_INVALID_ARGS and retry == True:
+ if e.get_dbus_name() == DBUS_INVALID_ARGS and retry:
signature_list = get_method_signature(self.bus, self.service,
path, self.interface,
@@ -461,7 +461,7 @@ class PropertyHandler(RouteHandler):
except ValueError, e:
abort(400, str(e))
except dbus.exceptions.DBusException, e:
- if e.get_dbus_name() == DBUS_INVALID_ARGS and retry == True:
+ if e.get_dbus_name() == DBUS_INVALID_ARGS and retry:
bus_name = properties_iface.bus_name
expected_type = get_type_signature_by_introspection(self.bus,
bus_name,
OpenPOWER on IntegriCloud