Skip to content

Commit 4099e56

Browse files
authored
Apply suggestions from code review
1 parent 479c0ca commit 4099e56

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
@@ -17,7 +17,7 @@
1717
else:
1818
# minimal attempt, handling only the most common case (spaces in path)
1919
def quote(s: str) -> str:
20-
return '"' + s + '"' if " " in s else s
20+
return f'"{s}"' if " " in s else s
2121

2222

2323
def print_includes() -> None:
@@ -33,7 +33,7 @@ def print_includes() -> None:
3333
if d and d not in unique_dirs:
3434
unique_dirs.append(d)
3535

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

3838

3939
def main() -> None:

0 commit comments

Comments
 (0)