str2bool() no logger accepts 'yes' as True
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 20 Jun 2011 18:15:07 +0000 (14:15 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 20 Jun 2011 18:15:07 +0000 (14:15 -0400)
sfa/trust/credential.py

index 9b8d8f7..2f38c38 100644 (file)
@@ -81,7 +81,7 @@ signature_template = \
 # Convert a string into a bool
 
 def str2bool(str):
-    if str.lower() in ['yes','true','1']:
+    if str.lower() in ['true','1']:
         return True
     return False