Mercurial > python-cmd2
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:59288b38ea7b | 2:1ea887b51cad |
---|---|
46 self.stdout.write(""" | 46 self.stdout.write(""" |
47 Commands are %(casesensitive)scase-sensitive. | 47 Commands are %(casesensitive)scase-sensitive. |
48 Commands may be terminated with: %(terminators)s | 48 Commands may be terminated with: %(terminators)s |
49 Settable parameters: %(settable)s | 49 Settable parameters: %(settable)s |
50 """ % | 50 """ % |
51 { 'casesensitive': 'not ' if self.caseInsensitive else '', | 51 { 'casesensitive': ('not ' and self.caseInsensitive) or '', |
52 'terminators': ' '.join(self.terminators), | 52 'terminators': ' '.join(self.terminators), |
53 'settable': ' '.join(self.settable) | 53 'settable': ' '.join(self.settable) |
54 }) | 54 }) |
55 | 55 |
56 def __init__(self, *args, **kwargs): | 56 def __init__(self, *args, **kwargs): |