Skip to content

Commit 95b1bed

Browse files
committed
Apply suggestions from code review
1 parent 4c9413a commit 95b1bed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pybind11/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
else:
1919
# minimal attempt, handling only the most common case (spaces in path)
2020
def quote(s: str) -> str:
21-
return '"' + s + '"' if " " in s else s
21+
return f'"{s}"' if " " in s else s
2222

2323

2424
def print_includes() -> None:
@@ -34,7 +34,7 @@ def print_includes() -> None:
3434
if d and d not in unique_dirs:
3535
unique_dirs.append(d)
3636

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

3939

4040
def main() -> None:

0 commit comments

Comments
 (0)