sqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28694)

(cherry picked from commit 1dac95c814)

Co-authored-by: Julien Palard <julien@palard.fr>
This commit is contained in:
Miss Islington (bot) 2021-10-05 14:04:27 -07:00 committed by GitHub
parent eb59e2fc11
commit 258c5fbbfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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