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

Fix various coding style errors

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent a82da619
......@@ -82,7 +82,7 @@ class BaseExporter(object):
output.target = multistring(unit.target)
output.context = unit.context
for location in unit.location.split():
output.addlocation(unit.location)
output.addlocation(location)
output.addnote(unit.comment)
if hasattr(output, 'settypecomment'):
for flag in unit.flags.split(','):
......@@ -129,7 +129,7 @@ class PoExporter(BaseExporter):
project_id_version='%s (%s)' % (
self.language.name, self.project.name
),
plural_forms= self.language.get_plural_form(),
plural_forms=self.language.get_plural_form(),
language_team='%s <%s>' % (
self.language.name,
self.url,
......
......@@ -374,7 +374,7 @@ class ExportTest(ViewTestCase):
)
def export_format(self, fmt):
kwargs = {'format': fmt}
kwargs = {'fmt': fmt}
kwargs.update(self.kw_translation)
return self.client.get(
reverse(
......
......@@ -39,11 +39,11 @@ from weblate.trans.permissions import (
)
def download_translation_format(request, project, subproject, lang, format):
def download_translation_format(request, project, subproject, lang, fmt):
obj = get_translation(request, project, subproject, lang)
try:
exporter = get_exporter(format)(
exporter = get_exporter(fmt)(
obj.subproject.project,
obj.language,
get_site_url(obj.get_absolute_url())
......
......@@ -190,7 +190,7 @@ urlpatterns = [
name='download_translation',
),
url(
r'^download/' + TRANSLATION + '(?P<format>[a-z]+)/$',
r'^download/' + TRANSLATION + '(?P<fmt>[a-z]+)/$',
weblate.trans.views.files.download_translation_format,
name='download_translation_format',
),
......
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