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

(cherry picked from commit 276643e207)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
Miss Islington (bot) 2022-11-27 13:21:00 -08:00 committed by GitHub
parent 366adc7c83
commit f160996412
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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