Skip to content

Commit e3e11ce

Browse files
authored
Merge branch 'master' into master
2 parents c65e8d7 + f6df6b4 commit e3e11ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

language_tool_python/download_lt.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def confirm_java_compatibility(language_tool_version: Optional[str] = LTP_DOWNLO
8080
:raises ModuleNotFoundError: If no Java installation is detected.
8181
:raises SystemError: If the detected Java version is less than the required version.
8282
"""
83-
83+
8484
java_path = which('java')
8585
if not java_path:
8686
raise ModuleNotFoundError(
@@ -122,7 +122,7 @@ def get_common_prefix(z: zipfile.ZipFile) -> Optional[str]:
122122
:return: The common prefix of all file names in the zip archive, or None if there is no common prefix.
123123
:rtype: Optional[str]
124124
"""
125-
125+
126126
name_list = z.namelist()
127127
if name_list and all(n.startswith(name_list[0]) for n in name_list[1:]):
128128
return name_list[0]
@@ -197,11 +197,11 @@ def download_lt(language_tool_version: Optional[str] = LTP_DOWNLOAD_VERSION) ->
197197
"""
198198
Downloads and extracts the specified version of LanguageTool.
199199
This function checks for Java compatibility, creates the necessary download
200-
directory if it does not exist, and downloads the specified version of
200+
directory if it does not exist, and downloads the specified version of
201201
LanguageTool if it is not already present.
202-
203-
:param language_tool_version: The version of LanguageTool to download. If not
204-
specified, the default version defined by
202+
203+
:param language_tool_version: The version of LanguageTool to download. If not
204+
specified, the default version defined by
205205
LTP_DOWNLOAD_VERSION is used.
206206
:type language_tool_version: Optional[str]
207207
:raises AssertionError: If the download folder is not a directory.

0 commit comments

Comments
 (0)