Skip to content

Commit 30cd999

Browse files
committed
fix formatting
1 parent f00db85 commit 30cd999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deadcode/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import List, Optional
22
import sys
33
import io
4-
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
54

65
from deadcode import __version__
76
from deadcode.actions.find_python_filenames import find_python_filenames
@@ -12,11 +11,12 @@
1211
get_unused_names_error_message,
1312
)
1413

14+
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
15+
1516

1617
def main(
1718
command_line_args: Optional[List[str]] = None,
1819
) -> Optional[str]:
19-
2020
if command_line_args and '--version' in command_line_args or '--version' in sys.argv:
2121
return __version__
2222

0 commit comments

Comments
 (0)