This commit is contained in:
Paul Gauthier 2023-04-09 16:11:06 -07:00
parent 610998aafd
commit 14463700d3
2 changed files with 10 additions and 11 deletions

View file

@ -73,10 +73,12 @@ class Coder:
print() print()
print('='*60) print('='*60)
try: inp = ''
inp = input('> ') while not inp.strip():
except EOFError: try:
return inp = input('> ')
except EOFError:
return
print() print()

View file

@ -17,7 +17,7 @@ the original chunk
>>>>>>> UPDATED >>>>>>> UPDATED
Here is an example for how to JUST add lines to a file, without altering any existing lines. Here is an example for how to JUST add lines to a file, without altering any existing lines.
This anchors the location of the new code in the file by including a few lines from the original file. This anchors the location of the new code in the file by including a few DISTINCTIVE lines from the original file.
foo.py foo.py
<<<<<<< ORIGINAL <<<<<<< ORIGINAL
@ -38,16 +38,13 @@ files_content_prefix_edited = 'I made your suggested changes, here are the updat
files_content_prefix_plain = 'Here are the files:\n\n' files_content_prefix_plain = 'Here are the files:\n\n'
files_content_suffix = ''' files_content_suffix = ''
YOU CAN ONLY EDIT THESE FILES.
NEVER REPLY WITH WHOLE FILES LIKE THIS!
'''
user_suffix = ''' user_suffix = '''
YOU CAN ONLY EDIT THE FILES I PROVIDED ABOVE!
NEVER INCLUDE AN ENTIRE FILE IN YOUR REPLY! NEVER INCLUDE AN ENTIRE FILE IN YOUR REPLY!
ONLY TELL ME CODE CHANGES BY USING ORIGINAL/UPDATED EDIT COMMANDS! TO SPECIFY CODE CHANGES YOU MUST USE THE ORIGINAL/UPDATED EDIT COMMANDS!
''' '''
### EDITOR ### EDITOR