summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'command.py')
-rw-r--r--command.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/command.py b/command.py
index e17f0ab9..5a5f468f 100644
--- a/command.py
+++ b/command.py
@@ -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.
126class InteractiveCommand(Command): 131class 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
140class MirrorSafeCommand(object): 147class 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.