Commit 49f1e0a7 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Use default definition of p_prompt for passing to base class.

Improves branch coverage. Also related to commit cde8f8ed.
parent d7820019
...@@ -24,8 +24,8 @@ class AppendCommand(Command): ...@@ -24,8 +24,8 @@ class AppendCommand(Command):
p_out=lambda a: None, p_out=lambda a: None,
p_err=lambda a: None, p_err=lambda a: None,
p_prompt=lambda a: None): p_prompt=lambda a: None):
super(AppendCommand, self).__init__( super(AppendCommand, self).__init__(p_args, p_todolist, p_out, p_err,
p_args, p_todolist, p_out, p_err, p_prompt=lambda a: None) p_prompt)
def execute(self): def execute(self):
if not super(AppendCommand, self).execute(): if not super(AppendCommand, self).execute():
......
...@@ -25,8 +25,8 @@ class RevertCommand(Command): ...@@ -25,8 +25,8 @@ class RevertCommand(Command):
p_out=lambda a: None, p_out=lambda a: None,
p_err=lambda a: None, p_err=lambda a: None,
p_prompt=lambda a: None): p_prompt=lambda a: None):
super(RevertCommand, self).__init__( super(RevertCommand, self).__init__(p_args, p_todolist, p_out, p_err,
p_args, p_todolist, p_out, p_err, p_prompt=lambda a: None) p_prompt)
def execute(self): def execute(self):
if not super(RevertCommand, self).execute(): if not super(RevertCommand, self).execute():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment