Skip to content

Commit 5149ce3

Browse files
authored
Apply suggestions from code review
1 parent 9df80d9 commit 5149ce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pybind11_mkdoc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _append_include_dir(args: list, include_dir: str, verbose: bool = True):
3737
if os.path.isdir(include_dir):
3838
args.append(f"-I{include_dir}")
3939
elif verbose:
40-
print(f"Include directoy '{include_dir}' does not exist!")
40+
print(f"Include directory {include_dir!r} does not exist!")
4141

4242

4343
def _append_definition(args: list, definition: str, verbose: bool = True):
@@ -61,7 +61,7 @@ def _append_definition(args: list, definition: str, verbose: bool = True):
6161
"""
6262

6363
try:
64-
macro, value = definition.strip().split('=')
64+
macro, _, value = definition.partition('=')
6565
macro = macro.strip()
6666
value = value.strip() if value else '1'
6767

0 commit comments

Comments
 (0)