Skip to content

Commit 5ca81fe

Browse files
committed
support Python v3.3
1 parent b3ef9ae commit 5ca81fe

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.6, 3.7, 3.8]
18+
python-version: [3.3, 3.4, 3.5, 3.6, 3.7, 3.8]
1919

2020
steps:
2121
- uses: actions/checkout@v2

‎language_tool_python/server.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,10 @@ def _register_spellings(self, spellings: List[str]):
131131
library_path = get_language_tool_directory()
132132
spelling_file_path = os.path.join(library_path, "org/languagetool/resource/en/hunspell/spelling.txt")
133133
if not os.path.exists(spelling_file_path):
134-
raise FileNotFoundError(f"Failed to find the spellings file at {spelling_file_path}\n"
135-
f"Please file an issue at https://github.com/jxmorris12/language_tool_python")
134+
raise FileNotFoundError("Failed to find the spellings file at {}\n Please file an issue at https://github.com/jxmorris12/language_tool_python".format(spelling_file_path))
136135
with open(spelling_file_path, "a+") as spellings_file:
137136
spellings_file.write("\n" + "\n".join([word for word in spellings]))
138-
print(f"Updated the spellings at {spelling_file_path}")
137+
print("Updated the spellings at {}".format(spelling_file_path))
139138

140139
def _get_languages(self) -> set:
141140
"""Get supported languages (by querying the server)."""

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='language_tool_python',
10-
version='2.4.5',
10+
version='2.4.6',
1111
description='Checks grammar using LanguageTool.',
1212
long_description_content_type='text/markdown',
1313
long_description=long_description,

0 commit comments

Comments
 (0)