diff options
Diffstat (limited to 'command.py')
| -rw-r--r-- | command.py | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -123,6 +123,11 @@ class Command(object): | |||
| 123 | result.sort(key=_getpath) | 123 | result.sort(key=_getpath) |
| 124 | return result | 124 | return result |
| 125 | 125 | ||
| 126 | # pylint: disable-msg=W0223 | ||
| 127 | # Pylint warns that the `InteractiveCommand` and `PagedCommand` classes do not | ||
| 128 | # override method `Execute` which is abstract in `Command`. Since that method | ||
| 129 | # is always implemented in classes derived from `InteractiveCommand` and | ||
| 130 | # `PagedCommand`, this warning can be suppressed. | ||
| 126 | class InteractiveCommand(Command): | 131 | class InteractiveCommand(Command): |
| 127 | """Command which requires user interaction on the tty and | 132 | """Command which requires user interaction on the tty and |
| 128 | must not run within a pager, even if the user asks to. | 133 | must not run within a pager, even if the user asks to. |
| @@ -137,6 +142,8 @@ class PagedCommand(Command): | |||
| 137 | def WantPager(self, opt): | 142 | def WantPager(self, opt): |
| 138 | return True | 143 | return True |
| 139 | 144 | ||
| 145 | # pylint: enable-msg=W0223 | ||
| 146 | |||
| 140 | class MirrorSafeCommand(object): | 147 | class MirrorSafeCommand(object): |
| 141 | """Command permits itself to run within a mirror, | 148 | """Command permits itself to run within a mirror, |
| 142 | and does not require a working directory. | 149 | and does not require a working directory. |
