]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: both sqlite3 "point examples" now adapt to str (GH-99823)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Nov 2022 21:21:00 +0000 (13:21 -0800)
committerGitHub <noreply@github.com>
Sun, 27 Nov 2022 21:21:00 +0000 (13:21 -0800)
(cherry picked from commit 276643e207d44c53b87a8108d5b00982defcce1e)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Doc/library/sqlite3.rst

index da84b20dc9df558e47f6f66456daa86922bef493..b720ac995c446b18d62f87eb4210c3756507e20d 100644 (file)
@@ -1991,7 +1991,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";")))