Skip to content

Commit b04b192

Browse files
Remove history related code
1 parent 9a783dc commit b04b192

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Lib/pdb.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,6 @@ def __init__(self, pdb_instance, stdin, stdout, prompt):
402402
completer_delims=frozenset(' \t\n`@#%^&*()=+[{]}\\|;:\'",<>?')
403403
)
404404
)
405-
try:
406-
self.readline_wrapper.read_history_file()
407-
except (FileNotFoundError, PermissionError, OSError):
408-
pass
409405

410406
def readline(self):
411407

@@ -432,11 +428,6 @@ def more_lines(text):
432428
'... ' + ' ' * (len(self.prompt) - 4)
433429
) + '\n'
434430
)
435-
try:
436-
self.readline_wrapper.append_history_file()
437-
except (FileNotFoundError, PermissionError, OSError) as e:
438-
import warnings
439-
warnings.warn(f"failed to open the history file for writing: {e}")
440431
return multiline
441432
except EOFError:
442433
return 'EOF'

0 commit comments

Comments
 (0)