changeset 2:1ea887b51cad

python 2.4 compatibility
author catherine@DellZilla.myhome.westell.com
date Fri, 11 Apr 2008 08:56:54 -0400
parents 59288b38ea7b
children 4520a1a073ff
files cmd2.py setup.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
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)
         })
--- a/setup.py	Wed Mar 05 12:25:21 2008 -0500
+++ b/setup.py	Fri Apr 11 08:56:54 2008 -0400
@@ -3,7 +3,7 @@
 
 setup(
     name="cmd2",
-    version="0.2.1",
+    version="0.2.2",
     py_modules = ['cmd2','flagReader'],
     
     # metadata for upload to PyPI