diff --git a/gramps/cli/user.py b/gramps/cli/user.py index 66adab695..d25a22a1a 100644 --- a/gramps/cli/user.py +++ b/gramps/cli/user.py @@ -58,6 +58,7 @@ class User(user.User): user.User.__init__(self, callback, error) self.steps = 0; self.current_step = 0; + self._input = input def yes(*args): return True @@ -135,7 +136,7 @@ class User(user.User): n = reject_label) print (text, file = self._fileout) # TODO python3 add flush=True try: - reply = input() + reply = self._input() return reply == "" or reply == accept_label except EOFError: return False