Skip to content

Commit

Permalink
coverage attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
pubpub-zz committed Jul 18, 2024
1 parent 7f16f0b commit f6061da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/_cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def prepare_cm(ft: DictionaryObject) -> bytes:
cm: bytes
if isinstance(tu, StreamObject):
cm = b_(cast(DecodedStreamObject, ft["/ToUnicode"]).get_data())
elif (tu is None) or (isinstance(tu, str) and tu.startswith("/Identity")):
elif (tu is None) or cast(str, tu).startswith("/Identity"):
# the full range 0000-FFFF will be processed
cm = b"beginbfrange\n<0000> <0001> <0000>\nendbfrange"
if isinstance(cm, str):
Expand Down

0 comments on commit f6061da

Please sign in to comment.