Skip to content

Commit 31e82d5

Browse files
committed
Format
1 parent 5f581d0 commit 31e82d5

3 files changed

Lines changed: 17 additions & 15 deletions

File tree

‎language_check/__init__.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
USE_URLOPEN_RESOURCE_WARNING_FIX = (3, 1) < sys.version_info < (3, 4)
5656

5757
if os.name == 'nt':
58-
startupinfo = subprocess.STARTUPINFO() # @UndefinedVariable
59-
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW # @UndefinedVariable
58+
startupinfo = subprocess.STARTUPINFO()
59+
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
6060
else:
6161
startupinfo = None
6262

@@ -215,8 +215,8 @@ def language(self, language):
215215
def motherTongue(self):
216216
"""The user’s mother tongue or None.
217217
218-
The mother tongue may also be used as a source language
219-
for checking bilingual texts.
218+
The mother tongue may also be used as a source language for
219+
checking bilingual texts.
220220
221221
"""
222222
return self._motherTongue

‎language_check/backports/subprocess.py‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
"""Some backported features for subprocess
2-
"""
1+
"""Some backported features for subprocess."""
32

43
from __future__ import absolute_import
54
import sys
6-
import subprocess # @UnusedImport
7-
from subprocess import (Popen, PIPE, STDOUT, CalledProcessError, # @UnusedImport
8-
call, check_call, check_output) # @UnusedImport
5+
import subprocess
6+
from subprocess import (Popen, PIPE, STDOUT, CalledProcessError,
7+
call, check_call, check_output)
98
if sys.platform == 'win32':
10-
from subprocess import STARTUPINFO # @UnusedImport
11-
from subprocess import * # @UnusedWildImport
9+
from subprocess import STARTUPINFO
10+
from subprocess import *
1211

1312

1413
try:
15-
TimeoutExpired # @UndefinedVariable
14+
TimeoutExpired
1615
except NameError:
17-
import time # @Reimport
16+
import time
1817

1918
class SubprocessError(Exception):
2019

@@ -27,6 +26,7 @@ class CalledProcessError(SubprocessError):
2726
Returns a non-zero exit status.
2827
2928
"""
29+
3030
def __init__(self, returncode, cmd, output=None):
3131
self.returncode = returncode
3232
self.cmd = cmd
@@ -40,6 +40,7 @@ class TimeoutExpired(SubprocessError):
4040

4141
"""Raised when the timeout expires while waiting for a child
4242
process."""
43+
4344
def __init__(self, cmd, timeout, output=None):
4445
self.cmd = cmd
4546
self.timeout = timeout
@@ -65,7 +66,7 @@ def Popen_wait(self, timeout=None):
6566
time.sleep(0.01)
6667
return self.returncode
6768

68-
def Popen_communicate(self, input=None, timeout=None): # @ReservedAssignment
69+
def Popen_communicate(self, input=None, timeout=None):
6970
"""Interact with process."""
7071
if timeout is not None:
7172
self.wait(timeout)

‎language_check/main.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def main():
8080
else:
8181
encoding = args.encoding or 'utf-8'
8282

83-
lang_tool = language_check.LanguageTool(motherTongue=args.mother_tongue)
83+
lang_tool = language_check.LanguageTool(
84+
motherTongue=args.mother_tongue)
8485
guess_language = None
8586

8687
if args.language:

0 commit comments

Comments
 (0)