Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/prompt_toolkit/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def store_string(self, string: str) -> None:
with open(self.filename, "ab") as f:

def write(t: str) -> None:
f.write(t.encode("utf-8"))
f.write(t.encode("utf-8", errors="replace"))

write(f"\n# {datetime.datetime.now()}\n")
for line in string.split("\n"):
Expand Down
2 changes: 1 addition & 1 deletion src/prompt_toolkit/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def __init__(
if input_processors is None:
input_processors = []

# Writeable attributes.
# Writable attributes.
self.completer = completer
self.complete_while_typing = complete_while_typing
self.lexer = lexer
Expand Down
Loading