diff --git a/PyPDF2/_cmap.py b/PyPDF2/_cmap.py index 749bb6934..31616de7e 100644 --- a/PyPDF2/_cmap.py +++ b/PyPDF2/_cmap.py @@ -37,7 +37,7 @@ def build_char_map( encoding[x] = chr(x) try: # override space_width with new params - space_width = _default_fonts_space_width[cast(str,ft["/BaseFont"])] + space_width = _default_fonts_space_width[cast(str, ft["/BaseFont"])] except Exception: pass # I conside the space_code is available on one byte