summaryrefslogtreecommitdiffstats
path: root/Doc/includes/sqlite3/blob.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/sqlite3/blob.py')
-rw-r--r--Doc/includes/sqlite3/blob.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/includes/sqlite3/blob.py b/Doc/includes/sqlite3/blob.py
index d947059..ff58d6c 100644
--- a/Doc/includes/sqlite3/blob.py
+++ b/Doc/includes/sqlite3/blob.py
@@ -9,8 +9,8 @@ with con.blobopen("test", "blob_col", 1) as blob:
blob.write(b"hello, ")
blob.write(b"world.")
# Modify the first and last bytes of our blob
- blob[0] = b"H"
- blob[-1] = b"!"
+ blob[0] = ord("H")
+ blob[-1] = ord("!")
# Read the contents of our blob
with con.blobopen("test", "blob_col", 1) as blob: