Skip to content

Commit dc604fa

Browse files
committed
Format
1 parent 076ecb7 commit dc604fa

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎download_lt.py‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,20 @@ def get_newest_possible_languagetool_version():
7373
regex = r'^java version "(?P<major1>\d+)\.(?P<major2>\d+)\.[^"]+"$'
7474
match = re.search(regex, output, re.MULTILINE)
7575
if not match:
76-
raise InstallationError('Could not parse Java version from """{}""".'.format(output))
76+
raise InstallationError(
77+
'Could not parse Java version from """{}""".'.format(output))
7778

78-
java_version = int(match.group('major1')) * 1000 + int(match.group('major2'))
79+
java_version = int(match.group('major1')) * 1000 + \
80+
int(match.group('major2'))
7981
if java_version >= 1007:
8082
return '2.7'
8183
elif java_version >= 1006:
82-
warn('language-check would be able to use a newer version of LanguageTool '
83-
'if you had Java 7 or newer installed.')
84+
warn('language-check would be able to use a newer version of '
85+
'LanguageTool if you had Java 7 or newer installed')
8486
return '2.2'
8587
else:
86-
raise InstallationError('You need at least Java 6 to use language-check.')
88+
raise InstallationError(
89+
'You need at least Java 6 to use language-check')
8790

8891

8992
def get_common_prefix(z):

0 commit comments

Comments
 (0)