diff options
Diffstat (limited to 'Doc/includes/sqlite3/md5func.py')
-rw-r--r-- | Doc/includes/sqlite3/md5func.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/sqlite3/md5func.py b/Doc/includes/sqlite3/md5func.py index b7bc05b..0056b2d 100644 --- a/Doc/includes/sqlite3/md5func.py +++ b/Doc/includes/sqlite3/md5func.py @@ -7,5 +7,5 @@ def md5sum(t): con = sqlite3.connect(":memory:") con.create_function("md5", 1, md5sum) cur = con.cursor() -cur.execute("select md5(?)", ("foo",)) +cur.execute("select md5(?)", (b"foo",)) print(cur.fetchone()[0]) |