]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2641] Update if statement
authorMukund Sivaraman <muks@isc.org>
Mon, 18 Feb 2013 17:00:42 +0000 (22:30 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 18 Feb 2013 17:01:21 +0000 (22:31 +0530)
This doesn't change any behavior, but changes the syntax used.

src/bin/bindctl/bindcmd.py

index 29230f90f320a9520853ebaee86c27b32c212be3..5918de78ee00c73d8597bed482281894de012817 100644 (file)
@@ -351,7 +351,7 @@ WARNING: Python readline module isn't available, so the command line editor
         parameters of command is encoded as a map
         '''
         param = None
-        if (post_param and len(post_param) != 0):
+        if post_param is not None and len(post_param) != 0:
             param = json.dumps(post_param)
 
         headers = {"cookie" : self.session_id}