From b09c2e0d2b6ecd59b9ac423af31d601038678030 Mon Sep 17 00:00:00 2001 From: Jens Kutilek Date: Tue, 9 Jan 2018 16:13:35 +0100 Subject: [PATCH] Add b to bytes --- Snippets/edit_raw_table_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snippets/edit_raw_table_data.py b/Snippets/edit_raw_table_data.py index 91f116e59..89326fe6c 100644 --- a/Snippets/edit_raw_table_data.py +++ b/Snippets/edit_raw_table_data.py @@ -16,7 +16,7 @@ raw_data = font.getTableData(table_tag) # Do something with the raw table data # This example just sets an empty DSIG table. -raw_data = "\0\0\0\1\0\0\0\0" +raw_data = b"\0\0\0\1\0\0\0\0" # Write the data back to the font