]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2254] minor (unrelated) style fix: make lhs and rhs around == more reasonable.
authorJINMEI Tatuya <jinmei@isc.org>
Mon, 1 Oct 2012 17:18:31 +0000 (10:18 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Mon, 1 Oct 2012 17:18:31 +0000 (10:18 -0700)
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.

src/bin/bindctl/bindcmd.py

index d4cab7c63787a420d55d061ad1105c4a12179335..8b176954c51060fd35959d789b3d17c16ce036d0 100644 (file)
@@ -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 = []