Skip to content

Commit 658b6e7

Browse files
PyInstaller: Fix DeprecationWarning when parsing the stub using ast.parse() (#9112)
```python >>> import ast, warnings >>> warnings.filterwarnings("always") >>> with open("typeshed/stubs/pyinstaller/pyi_splash/__init__.pyi", encoding="utf-8") as file: ... source = file.read() ... >>> ast.parse(source) <unknown>:11: DeprecationWarning: invalid escape sequence '\u' <ast.Module object at 0x0000027EAF6D3AF0> ``` Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent 5751b46 commit 658b6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/pyinstaller/pyi_splash/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ def is_alive() -> bool: ...
88
def update_text(msg: str) -> None: ...
99
def close() -> None: ...
1010

11-
CLOSE_CONNECTION: Literal[b"\u0004"]
11+
CLOSE_CONNECTION: Literal[b"\x04"]
1212
FLUSH_CHARACTER: Literal[b"\r"]

0 commit comments

Comments
 (0)