Browse Source

[2641] Update if statement

This doesn't change any behavior, but changes the syntax used.
Mukund Sivaraman 12 years ago
parent
commit
2133c6ae39
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/bindctl/bindcmd.py

+ 1 - 1
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}