Skip to content

Commit

Permalink
Update src/twisted/persisted/aot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Aug 16, 2023
1 parent 4cf97c5 commit e903eea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/twisted/persisted/aot.py
Expand Up @@ -233,6 +233,8 @@ def indentify(s):
l = ["", s]

def readline():
# tokenize no longer supports null bytes in source code since 3.12
# see https://github.com/python/cpython/issues/102856
return l.pop().replace("\0", "")

for (
Expand Down

0 comments on commit e903eea

Please sign in to comment.