Parcourir la source

[2641] Update if statement

This doesn't change any behavior, but changes the syntax used.
Mukund Sivaraman il y a 12 ans
Parent
commit
2133c6ae39
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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}