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:16:34 -08:00 committed by GitHub
parent 72d173599d
commit ab87bcd91f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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