From: Erlend E. Aasland Date: Sun, 27 Nov 2022 21:08:30 +0000 (+0100) Subject: Docs: both sqlite3 "point examples" now adapt to str (#99823) X-Git-Tag: v3.12.0a3~72 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=276643e207d44c53b87a8108d5b00982defcce1e;p=thirdparty%2FPython%2Fcpython.git Docs: both sqlite3 "point examples" now adapt to str (#99823) --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 0dac2312b2fe..7e2235b285b8 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";")))