From 4cab4b5dc7bd93759feecebbd7b025cb37a8f279 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Sun, 27 Nov 2022 22:08:30 +0100 Subject: [PATCH] Docs: both sqlite3 "point examples" now adapt to str (GH-99823) (cherry picked from commit 276643e207d44c53b87a8108d5b00982defcce1e) Co-authored-by: Erlend E. Aasland --- 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 6a38aa525b8e5e..9775f80624a0fe 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -1605,7 +1605,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";")))