Skip to content

Commit f70c0ad

Browse files
committed
v2.6.1: bug fixes to support python 3.6 again
1 parent 956eb3c commit f70c0ad

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎language_tool_python/language_tag.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __str__(self):
2222
return self.normalized_tag
2323

2424
def __repr__(self):
25-
return f'<LanguageTag "{str(self)}">'
25+
return '<LanguageTag "{}">'.format(str(self))
2626

2727
def _normalize(self, tag):
2828
if not tag:

‎language_tool_python/server.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _query_server(self, url, params=None, num_tries=2):
207207
try:
208208
return response.json()
209209
except json.decoder.JSONDecodeError as e:
210-
print(f'URL {url} and params {params} returned invalid JSON response:')
210+
print('URL {} and params {} returned invalid JSON response:'.format(url, params))
211211
print(response)
212212
print(response.content)
213213
raise e

0 commit comments

Comments
 (0)