Skip to content

Commit 88a298a

Browse files
authored
STY: Use dictionary comprehension (#3177)
1 parent edf782e commit 88a298a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypdf/_cmap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def build_char_map_from_dict(
7373
unknown_char_map: Tuple[str, float, Union[str, Dict[int, str]], Dict[Any, Any]] = (
7474
"Unknown",
7575
9999,
76-
dict(zip(range(256), ["�"] * 256)),
76+
{key: "�" for key in range(256)},
7777
{},
7878
)
7979

0 commit comments

Comments
 (0)