From: Mukund Sivaraman Date: Mon, 18 Feb 2013 17:00:42 +0000 (+0530) Subject: [2641] Update if statement X-Git-Tag: bind10-1.1.0beta1-release~51^2~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2133c6ae39aef257ad8c46bbffd0765de83bdce8;p=thirdparty%2Fkea.git [2641] Update if statement This doesn't change any behavior, but changes the syntax used. --- diff --git a/src/bin/bindctl/bindcmd.py b/src/bin/bindctl/bindcmd.py index 29230f90f3..5918de78ee 100644 --- a/src/bin/bindctl/bindcmd.py +++ b/src/bin/bindctl/bindcmd.py @@ -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}