aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-11-27 13:21:00 -0800
committerGitHub <noreply@github.com>2022-11-27 13:21:00 -0800
commitf160996412e405a1ed2ed9959c061caa61b2636b (patch)
treebaeaa1da9e21bb5d262f783fd2abcb3741c4e228
parentgh-91340: Document multiprocessing.set_start_method force parameter (GH-32339) (diff)
downloadcpython-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.rst2
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";")))