Skip to content

Commit f160996

Browse files
Docs: both sqlite3 "point examples" now adapt to str (GH-99823)
(cherry picked from commit 276643e) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent 366adc7 commit f160996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/sqlite3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ The following example illustrates the implicit and explicit approaches:
19911991
return f"Point({self.x}, {self.y})"
19921992

19931993
def adapt_point(point):
1994-
return f"{point.x};{point.y}".encode("utf-8")
1994+
return f"{point.x};{point.y}"
19951995

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

0 commit comments

Comments
 (0)