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

This commit is contained in:
Erlend E. Aasland 2022-11-27 22:08:30 +01:00 committed by GitHub
parent dfc2732a57
commit 276643e207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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