diff options
-rwxr-xr-x | scripts/analyze-migration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/analyze-migration.py b/scripts/analyze-migration.py index e527eb1..2b835d9 100755 --- a/scripts/analyze-migration.py +++ b/scripts/analyze-migration.py @@ -86,8 +86,8 @@ class MigrationFile(object): # Find the last NULL byte, then the first brace after that. This should # be the beginning of our JSON data. - nulpos = data.rfind("\0") - jsonpos = data.find("{", nulpos) + nulpos = data.rfind(b'\0') + jsonpos = data.find(b'{', nulpos) # Check backwards from there and see whether we guessed right self.file.seek(datapos + jsonpos - 5, 0) |