- fixed tests

- using bytes for strings
This commit is contained in:
ari committed 2020-10-29 18:02:12 -04:00
1 parent ee011a5da0
commit b40d2bf6e5
5 files changed
+26 -26

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ def parse_string(buffer: BufferStream) -> TokenString:
return TokenString(
initialpos,
buffer.tell(),
state.curtoken.decode(),
state.curtoken,
)
raise LexerEOF
+1 -1
View File
@@ -77,7 +77,7 @@ class TokenNull(Token[None]):
pass
class TokenString(Token[str]):
class TokenString(Token[bytes]):
"""Token representing PDF literal string
Detection of this type of token can be found in PDF 1.7 spec section 7.3.4.2
"""
+1 -1
View File
@@ -38,7 +38,7 @@ class PDFPrimitiveObject(PDFObject, Generic[T]):
)
class PDFString(PDFPrimitiveObject[str]):
class PDFString(PDFPrimitiveObject[bytes]):
pass