]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: both sqlite3 "point examples" now adapt to str (#99823)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Sun, 27 Nov 2022 21:08:30 +0000 (22:08 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Nov 2022 21:08:30 +0000 (22:08 +0100)
Doc/library/sqlite3.rst

index 0dac2312b2feb1718c753283347184d101cb9b02..7e2235b285b814d95c6386f67856bed548b1808c 100644 (file)
@@ -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";")))