summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2022-11-27 21:08:30 (GMT)
committerGitHub <noreply@github.com>2022-11-27 21:08:30 (GMT)
commit276643e207d44c53b87a8108d5b00982defcce1e (patch)
treedb4454890250fa670053ada1c402017db5222df7 /Doc
parentdfc2732a57e3ea6603d62f769d4f9c80be726fa4 (diff)
downloadcpython-276643e207d44c53b87a8108d5b00982defcce1e.zip
cpython-276643e207d44c53b87a8108d5b00982defcce1e.tar.gz
cpython-276643e207d44c53b87a8108d5b00982defcce1e.tar.bz2
Docs: both sqlite3 "point examples" now adapt to str (#99823)
Diffstat (limited to 'Doc')
-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 0dac231..7e2235b 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -2105,7 +2105,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";")))