MCPcopy Index your code
hub / github.com/RustPython/RustPython / write_history

Function write_history

Lib/site.py:580–591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

578 pass
579
580 def write_history():
581 try:
582 readline_module.write_history_file(history)
583 except FileNotFoundError, PermissionError:
584 # home directory does not exist or is not writable
585 # https://bugs.python.org/issue19891
586 pass
587 except OSError:
588 if errno.EROFS:
589 pass # gh-128066: read-only file system
590 else:
591 raise
592
593 atexit.register(write_history)
594

Callers

nothing calls this directly

Calls 1

write_history_fileMethod · 0.80

Tested by

no test coverage detected