aboutsummaryrefslogtreecommitdiff
path: root/rpki/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpki/cli.py')
-rw-r--r--rpki/cli.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/rpki/cli.py b/rpki/cli.py
index 51ac0367..9440ecb2 100644
--- a/rpki/cli.py
+++ b/rpki/cli.py
@@ -82,12 +82,12 @@ class Cmd(cmd.Cmd):
self.last_command_failed = True
return False
- def do_EOF(self, arg):
+ def do_EOF(self, arg): # pylint: disable=W0613
if self.EOF_exits_command_loop and self.prompt:
print
return self.EOF_exits_command_loop
- def do_exit(self, arg):
+ def do_exit(self, arg): # pylint: disable=W0613,R0201
"""
Exit program.
"""
@@ -106,7 +106,7 @@ class Cmd(cmd.Cmd):
if self.emptyline_repeats_last_command:
cmd.Cmd.emptyline(self)
- def filename_complete(self, text, line, begidx, endidx):
+ def filename_complete(self, text, line, begidx, endidx): # pylint: disable=W0613,R0201
"""
Filename completion handler, with hack to restore what I consider
the normal (bash-like) behavior when one hits the completion key
@@ -199,9 +199,9 @@ def yes_or_no(prompt, default = None, require_full_word = False):
print 'Please answer "yes" or "no"'
_yes_or_no_prompts = {
- True : ' ("yes" or "no" ["yes"]) ',
- False : ' ("yes" or "no" ["no"]) ',
- None : ' ("yes" or "no") ' }
+ True : ' ("yes" or "no" ["yes"]) ',
+ False : ' ("yes" or "no" ["no"]) ',
+ None : ' ("yes" or "no") ' }
class NonExitingArgumentParser(argparse.ArgumentParser):