We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef221b1 commit 610f661Copy full SHA for 610f661
pylib/gyp/__init__.py
@@ -29,7 +29,7 @@ def EscapeForCString(string: bytes | str) -> str:
29
string = string.encode(encoding='utf8')
30
31
backslash_or_double_quote = {ord('\\'), ord('"')}
32
- result = []
+ result = ''
33
for char in string:
34
if char in backslash_or_double_quote or not 32 <= char < 127:
35
result += '\\%03o' % char
0 commit comments