Skip to content

Commit ab87bcd

Browse files
Docs: both sqlite3 "point examples" now adapt to str (GH-99823)
(cherry picked from commit 276643e) Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 72d1735 commit ab87bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/sqlite3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ The following example illustrates the implicit and explicit approaches:
16051605
return f"Point({self.x}, {self.y})"
16061606

16071607
def adapt_point(point):
1608-
return f"{point.x};{point.y}".encode("utf-8")
1608+
return f"{point.x};{point.y}"
16091609

16101610
def convert_point(s):
16111611
x, y = list(map(float, s.split(b";")))

0 commit comments

Comments
 (0)