| Revision 126,
719 bytes
checked in by thomas, 6 years ago
(diff) |
- moap/command/bug.py:
- moap/command/code.py:
- moap/command/doap.py:
pychecker fixes
|
| Line | |
|---|
| 1 | # -*- Mode: Python -*- |
|---|
| 2 | # vi:si:et:sw=4:sts=4:ts=4 |
|---|
| 3 | |
|---|
| 4 | import sys |
|---|
| 5 | |
|---|
| 6 | from moap.util import util, mail |
|---|
| 7 | |
|---|
| 8 | class Develop(util.LogCommand): |
|---|
| 9 | summary = "develop code" |
|---|
| 10 | description = """This command develops the code for you.""" |
|---|
| 11 | |
|---|
| 12 | def handleOptions(self, options): |
|---|
| 13 | self.options = options |
|---|
| 14 | |
|---|
| 15 | def do(self, args): |
|---|
| 16 | sys.stderr.write( |
|---|
| 17 | 'You are missing the hal-readmind package.\n' |
|---|
| 18 | 'Please install and retry.\n') |
|---|
| 19 | return 3 |
|---|
| 20 | |
|---|
| 21 | class Test(util.LogCommand): |
|---|
| 22 | summary = "test code you've written" |
|---|
| 23 | |
|---|
| 24 | def do(self, args): |
|---|
| 25 | print "Yes, you should." |
|---|
| 26 | return 0 |
|---|
| 27 | |
|---|
| 28 | class Code(util.LogCommand): |
|---|
| 29 | description = "do things to the code" |
|---|
| 30 | subCommandClasses = [Develop, Test] |
|---|
Note: See
TracBrowser
for help on using the repository browser.