diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-27 21:21:00 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-27 21:21:00 (GMT) |
| commit | f160996412e405a1ed2ed9959c061caa61b2636b (patch) | |
| tree | baeaa1da9e21bb5d262f783fd2abcb3741c4e228 | |
| parent | 366adc7c832554454841fe7472c90f3ed9bf1f7d (diff) | |
| download | cpython-f160996412e405a1ed2ed9959c061caa61b2636b.zip cpython-f160996412e405a1ed2ed9959c061caa61b2636b.tar.gz cpython-f160996412e405a1ed2ed9959c061caa61b2636b.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 da84b20..b720ac9 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";"))) |
