diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2022-11-27 21:08:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 21:08:30 (GMT) |
commit | 276643e207d44c53b87a8108d5b00982defcce1e (patch) | |
tree | db4454890250fa670053ada1c402017db5222df7 /Doc | |
parent | dfc2732a57e3ea6603d62f769d4f9c80be726fa4 (diff) | |
download | cpython-276643e207d44c53b87a8108d5b00982defcce1e.zip cpython-276643e207d44c53b87a8108d5b00982defcce1e.tar.gz cpython-276643e207d44c53b87a8108d5b00982defcce1e.tar.bz2 |
Docs: both sqlite3 "point examples" now adapt to str (#99823)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sqlite3.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 0dac231..7e2235b 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -2105,7 +2105,7 @@ The following example illustrates the implicit and explicit approaches: return f"Point({self.x}, {self.y})" def adapt_point(point): - return f"{point.x};{point.y}".encode("utf-8") + return f"{point.x};{point.y}" def convert_point(s): x, y = list(map(float, s.split(b";"))) |