summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorJulien Palard <julien@palard.fr>2021-10-01 12:37:56 (GMT)
committerGitHub <noreply@github.com>2021-10-01 12:37:56 (GMT)
commit1dac95c814763eb8a53896ac4326d8d51895d43d (patch)
treefecab180aea72252155f1df8c1abe467c51d6518 /Doc/includes
parent833fdf126c8fe77fd17e8a8ffbc5c571b3bf64bd (diff)
downloadcpython-1dac95c814763eb8a53896ac4326d8d51895d43d.zip
cpython-1dac95c814763eb8a53896ac4326d8d51895d43d.tar.gz
cpython-1dac95c814763eb8a53896ac4326d8d51895d43d.tar.bz2
sqlite3: Modernize documentation around unicode and bytes. (GH-28652)
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/sqlite3/text_factory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/includes/sqlite3/text_factory.py b/Doc/includes/sqlite3/text_factory.py
index a857a15..c0d87cd 100644
--- a/Doc/includes/sqlite3/text_factory.py
+++ b/Doc/includes/sqlite3/text_factory.py
@@ -3,9 +3,9 @@ import sqlite3
con = sqlite3.connect(":memory:")
cur = con.cursor()
-AUSTRIA = "\xd6sterreich"
+AUSTRIA = "Österreich"
-# by default, rows are returned as Unicode
+# by default, rows are returned as str
cur.execute("select ?", (AUSTRIA,))
row = cur.fetchone()
assert row[0] == AUSTRIA