From 987fea26cc457e46caa0a21f8f4700020ba57f4f Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Sun, 27 Nov 2022 21:20:15 +0100 Subject: [PATCH] Docs: both sqlite3 "point examples" now adapt to str --- Doc/library/sqlite3.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 0dac2312b2feb1..7e2235b285b814 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";")))