Skip to content

Commit 86645ba

Browse files
committed
Minor
1 parent 2167c45 commit 86645ba

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎README.rst‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ You can use the ``setup.py`` script::
2424

2525
$ ./setup.py install
2626

27-
On Windows, you can use one of the MSI binary packages provided
28-
on the `download page
29-
<https://bitbucket.org/spirit/language_tool/downloads>`_.
27+
On Windows, you can use one of the MSI binary packages provided on the
28+
`download page <https://bitbucket.org/spirit/language_tool/downloads>`_.
3029

3130

3231
Requirements

‎language_tool/__main__.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ 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))
4847
return text
4948

5049

‎language_tool/backports/subprocess.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
from __future__ import absolute_import
55
import sys
6-
from subprocess import (Popen, PIPE, STDOUT, #@UnusedImport
7-
call, check_call, check_output, #@UnusedImport
8-
CalledProcessError) #@UnusedImport
6+
import subprocess #@UnusedImport
7+
from subprocess import (Popen, PIPE, STDOUT, CalledProcessError, #@UnusedImport
8+
call, check_call, check_output) #@UnusedImport
99
if sys.platform == "win32":
1010
from subprocess import STARTUPINFO #@UnusedImport
1111
from subprocess import * #@UnusedWildImport
@@ -70,6 +70,7 @@ def Popen_communicate(self, input=None, timeout=None): #@ReservedAssignment
7070
self.wait(timeout)
7171
return _Popen_communicate(self, input)
7272

73+
subprocess.CalledProcessError = CalledProcessError
7374
_Popen_init = Popen.__init__
7475
_Popen_wait = Popen.wait
7576
_Popen_communicate = Popen.communicate

0 commit comments

Comments
 (0)