Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
6270b71f
Commit
6270b71f
authored
Apr 19, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix various coding style errors
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
fa41f13e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
weblate/accounts/management/commands/importusers.py
weblate/accounts/management/commands/importusers.py
+2
-2
weblate/trans/management/commands/__init__.py
weblate/trans/management/commands/__init__.py
+2
-1
weblate/trans/management/commands/benchmark.py
weblate/trans/management/commands/benchmark.py
+2
-2
No files found.
weblate/accounts/management/commands/importusers.py
View file @
6270b71f
...
@@ -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
):
'''
'''
...
...
weblate/trans/management/commands/__init__.py
View file @
6270b71f
...
@@ -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
:
...
...
weblate/trans/management/commands/benchmark.py
View file @
6270b71f
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment