252
253
return patches.parse_patch(diff_file)
254
262
def prompt(self, message):
255
263
"""Prompt the user for a character.
257
265
:param message: The message to prompt a user with.
261
269
if char_based and not sys.stdin.isatty():
262
270
# Since there is no controlling terminal we will hang when
263
271
# trying to prompt the user, better abort now. See