diff options
author | 2022-11-27 13:21:00 -0800 | |
---|---|---|
committer | 2022-11-27 13:21:00 -0800 | |
commit | f160996412e405a1ed2ed9959c061caa61b2636b (patch) | |
tree | baeaa1da9e21bb5d262f783fd2abcb3741c4e228 | |
parent | gh-91340: Document multiprocessing.set_start_method force parameter (GH-32339) (diff) | |
download | cpython-f160996412e405a1ed2ed9959c061caa61b2636b.tar.gz cpython-f160996412e405a1ed2ed9959c061caa61b2636b.tar.bz2 cpython-f160996412e405a1ed2ed9959c061caa61b2636b.zip |
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 da84b20dc9..b720ac995c 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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";"))) |