We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f00db85 commit 30cd999Copy full SHA for 30cd999
deadcode/cli.py
@@ -1,7 +1,6 @@
1
from typing import List, Optional
2
import sys
3
import io
4
-sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
5
6
from deadcode import __version__
7
from deadcode.actions.find_python_filenames import find_python_filenames
@@ -12,11 +11,12 @@
12
11
get_unused_names_error_message,
13
)
14
+sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
15
+
16
17
def main(
18
command_line_args: Optional[List[str]] = None,
19
) -> Optional[str]:
-
20
if command_line_args and '--version' in command_line_args or '--version' in sys.argv:
21
return __version__
22
0 commit comments