Commit cc657a61 authored by Michal Čihař's avatar Michal Čihař

Wrap long lines

parent 8f4e5010
......@@ -57,4 +57,6 @@ class GlosbeTranslation(MachineTranslation):
if not 'tuc' in response:
return []
return [(match['phrase']['text'], 100) for match in response['tuc'] if match['phrase'] is not None]
return [(match['phrase']['text'], 100)
for match in response['tuc']
if match['phrase'] is not None]
......@@ -59,4 +59,6 @@ class OpenTranTranslation(MachineTranslation):
)
)
return [self.format_match(match) for match in response if match['value'] <= 4]
return [self.format_match(match)
for match in response
if match['value'] <= 4]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment