From fa7d8fedc5e5d2846373304de0333bc0359a5c7e Mon Sep 17 00:00:00 2001 From: pubpub-zz <4083478+pubpub-zz@users.noreply.github.com> Date: Sat, 9 Jul 2022 22:53:41 +0200 Subject: [PATCH] fix flake8 --- PyPDF2/_cmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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