diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-27 21:16:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 21:16:34 (GMT) |
commit | ab87bcd91fdb5fddb0cea6f4a38ef9e6a679482b (patch) | |
tree | 6abc84d2490783758715740be2a99dd9640caaad | |
parent | 72d173599daf43851f934b998c60315d7594b5e0 (diff) | |
download | cpython-ab87bcd91fdb5fddb0cea6f4a38ef9e6a679482b.zip cpython-ab87bcd91fdb5fddb0cea6f4a38ef9e6a679482b.tar.gz cpython-ab87bcd91fdb5fddb0cea6f4a38ef9e6a679482b.tar.bz2 |
Docs: both sqlite3 "point examples" now adapt to str (GH-99823)
(cherry picked from commit 276643e207d44c53b87a8108d5b00982defcce1e)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
-rw-r--r-- | Doc/library/sqlite3.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 6a38aa5..9775f80 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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";"))) |