diff cmd2.py @ 2:1ea887b51cad

python 2.4 compatibility
author catherine@DellZilla.myhome.westell.com
date Fri, 11 Apr 2008 08:56:54 -0400
parents febfdc79550b
children 4520a1a073ff
line wrap: on
line diff
--- a/cmd2.py	Wed Mar 05 12:25:21 2008 -0500
+++ b/cmd2.py	Fri Apr 11 08:56:54 2008 -0400
@@ -48,7 +48,7 @@
         Commands may be terminated with: %(terminators)s
         Settable parameters: %(settable)s
         """ % 
-        { 'casesensitive': 'not ' if self.caseInsensitive else '',
+        { 'casesensitive': ('not ' and self.caseInsensitive) or '',
           'terminators': ' '.join(self.terminators),
           'settable': ' '.join(self.settable)
         })