Commit 6270b71f authored by Michal Čihař's avatar Michal Čihař

Fix various coding style errors

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent fa41f13e
...@@ -23,7 +23,7 @@ from __future__ import unicode_literals ...@@ -23,7 +23,7 @@ from __future__ import unicode_literals
import argparse import argparse
import json import json
from django.core.management.base import BaseCommand, CommandError from django.core.management.base import BaseCommand
from django.contrib.auth.models import User from django.contrib.auth.models import User
...@@ -40,7 +40,7 @@ class Command(BaseCommand): ...@@ -40,7 +40,7 @@ class Command(BaseCommand):
'json-file', 'json-file',
type=argparse.FileType('rb'), type=argparse.FileType('rb'),
help='File to import', help='File to import',
) )
def handle(self, *args, **options): def handle(self, *args, **options):
''' '''
......
...@@ -106,7 +106,8 @@ class WeblateCommand(BaseCommand): ...@@ -106,7 +106,8 @@ class WeblateCommand(BaseCommand):
elif len(options['component']) == 0: elif len(options['component']) == 0:
# no argumets to filter projects # no argumets to filter projects
self.stderr.write( self.stderr.write(
'Please specify either --all or at least one <project/component>' 'Please specify either --all '
'or at least one <project/component>'
) )
raise CommandError('Nothing to process!') raise CommandError('Nothing to process!')
else: else:
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
import cProfile import cProfile
import pstats import pstats
from django.core.management.base import BaseCommand, CommandError from django.core.management.base import BaseCommand
from weblate.trans.models import SubProject, Project from weblate.trans.models import SubProject, Project
...@@ -53,7 +53,7 @@ class Command(BaseCommand): ...@@ -53,7 +53,7 @@ class Command(BaseCommand):
) )
parser.add_argument( parser.add_argument(
'repo', 'repo',
help='VCS repository URL', help='Test VCS repository URL',
) )
parser.add_argument( parser.add_argument(
'mask', 'mask',
......
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