summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-05 21:04:02 (GMT)
committerGitHub <noreply@github.com>2021-10-05 21:04:02 (GMT)
commit92450f23c6b2609ed40410c84cd4ed4e7ba72d4a (patch)
tree04460047ae505cb218e0a9e692c7d5bcf775afac /Doc/includes
parent52d9d3b75441ae6038fadead89eac5eecdd34501 (diff)
downloadcpython-92450f23c6b2609ed40410c84cd4ed4e7ba72d4a.zip
cpython-92450f23c6b2609ed40410c84cd4ed4e7ba72d4a.tar.gz
cpython-92450f23c6b2609ed40410c84cd4ed4e7ba72d4a.tar.bz2
sqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28695)
(cherry picked from commit 1dac95c814763eb8a53896ac4326d8d51895d43d) Co-authored-by: Julien Palard <julien@palard.fr>
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