Skip to content

Commit

Permalink
Docs: both sqlite3 "point examples" now adapt to str (GH-99823)
Browse files Browse the repository at this point in the history
(cherry picked from commit 276643e)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
miss-islington and erlend-aasland committed Nov 27, 2022
1 parent 366adc7 commit f160996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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";")))
Expand Down

0 comments on commit f160996

Please sign in to comment.