This commit is contained in:
Paul Gauthier 2023-04-08 18:38:17 -07:00
parent c4c81341a2
commit f0d56e3cce

View file

@ -182,7 +182,11 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
print() print()
print('='*60) print('='*60)
inp = input('> ') try:
inp = input('> ')
except EOFError:
return
print() print()
#readline.add_history(inp) #readline.add_history(inp)
@ -198,6 +202,8 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
did_edits = False did_edits = False
while True: while True:
inp = self.get_input() inp = self.get_input()
if inp is None:
return
if did_edits: if did_edits:
files_prefix = 'I made your suggested changes, here are the updated files:' files_prefix = 'I made your suggested changes, here are the updated files:'
@ -257,6 +263,10 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
continue continue
pbar.update(len(text)) pbar.update(len(text))
pbar.update(show_progress)
pbar.close()
resp = ''.join(resp) resp = ''.join(resp)
return resp return resp