Skip to content

Commit 2167c45

Browse files
committed
STARTUPINFO
1 parent bce834d commit 2167c45

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎language_tool/__main__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def get_rules(rules: str) -> set:
4444
def get_text(file, encoding):
4545
with open(file, encoding=encoding) as f:
4646
text = "\n".join(f.readlines())
47+
print(ascii(text))
4748
return text
4849

4950

‎language_tool/backports/subprocess.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
"""
33

44
from __future__ import absolute_import
5+
import sys
56
from subprocess import (Popen, PIPE, STDOUT, #@UnusedImport
67
call, check_call, check_output, #@UnusedImport
78
CalledProcessError) #@UnusedImport
9+
if sys.platform == "win32":
10+
from subprocess import STARTUPINFO #@UnusedImport
811
from subprocess import * #@UnusedWildImport
912

13+
1014
try:
1115
TimeoutExpired #@UndefinedVariable
1216
except NameError:

0 commit comments

Comments
 (0)