Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Nov 1, 2023
1 parent 479c0ca commit 4099e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybind11/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
else:
# minimal attempt, handling only the most common case (spaces in path)
def quote(s: str) -> str:
return '"' + s + '"' if " " in s else s
return f'"{s}"' if " " in s else s


def print_includes() -> None:
Expand All @@ -33,7 +33,7 @@ def print_includes() -> None:
if d and d not in unique_dirs:
unique_dirs.append(d)

print(" ".join(quote("-I" + d) for d in unique_dirs))
print(" ".join(quote(f"-I{d}") for d in unique_dirs))


def main() -> None:
Expand Down

0 comments on commit 4099e56

Please sign in to comment.