From: JINMEI Tatuya Date: Mon, 1 Oct 2012 17:18:31 +0000 (-0700) Subject: [2254] minor (unrelated) style fix: make lhs and rhs around == more reasonable. X-Git-Tag: trac2402_base~83^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a0a89d0cab063bb69e4ec4fede497f9d8d329ba;p=thirdparty%2Fkea.git [2254] minor (unrelated) style fix: make lhs and rhs around == more reasonable. per guideline. also, there shouldn't have been a reason for using the unreadable version in python in the first place, because statement like 'if x = 0:' would result in a syntax error. --- diff --git a/src/bin/bindctl/bindcmd.py b/src/bin/bindctl/bindcmd.py index d4cab7c637..8b176954c5 100644 --- a/src/bin/bindctl/bindcmd.py +++ b/src/bin/bindctl/bindcmd.py @@ -528,7 +528,7 @@ class BindCmdInterpreter(Cmd): Returns the string value of the hints list with index 'state', or None if no (more) hints are available. """ - if 0 == state: + if state == 0: self._update_all_modules_info() text = text.strip() hints = []