diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-05 21:04:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 21:04:02 (GMT) |
commit | 92450f23c6b2609ed40410c84cd4ed4e7ba72d4a (patch) | |
tree | 04460047ae505cb218e0a9e692c7d5bcf775afac /Doc/includes | |
parent | 52d9d3b75441ae6038fadead89eac5eecdd34501 (diff) | |
download | cpython-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.py | 4 |
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 |