[Python-checkins] Docs: both sqlite3 "point examples" now adapt to str (#99823)

erlend-aasland webhook-mailer at python.org
Sun Nov 27 16:08:36 EST 2022


https://github.com/python/cpython/commit/276643e207d44c53b87a8108d5b00982defcce1e
commit: 276643e207d44c53b87a8108d5b00982defcce1e
branch: main
author: Erlend E. Aasland <erlend.aasland at protonmail.com>
committer: erlend-aasland <erlend.aasland at protonmail.com>
date: 2022-11-27T22:08:30+01:00
summary:

Docs: both sqlite3 "point examples" now adapt to str (#99823)

files:
M Doc/library/sqlite3.rst

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";")))



More information about the Python-checkins mailing list