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
6933907a
Commit
6933907a
authored
Jan 08, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various Python 3 compatibility fixes
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
d3b39131
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
weblate/accounts/tests/test_registration.py
weblate/accounts/tests/test_registration.py
+2
-2
weblate/trans/views/js.py
weblate/trans/views/js.py
+1
-1
weblate/trans/views/reports.py
weblate/trans/views/reports.py
+1
-1
No files found.
weblate/accounts/tests/test_registration.py
View file @
6933907a
...
...
@@ -334,8 +334,8 @@ class RegistrationTest(TestCase, RegistrationTestMixin):
follow
=
True
)
user
=
User
.
objects
.
get
(
username
=
'weblate'
)
self
.
assertEqual
s
(
user
.
first_name
,
'Weblate'
)
self
.
assertEqual
s
(
user
.
email
,
'noreply@weblate.org'
)
self
.
assertEqual
(
user
.
first_name
,
'Weblate'
)
self
.
assertEqual
(
user
.
email
,
'noreply@weblate.org'
)
class
NoCookieRegistrationTest
(
RegistrationTest
):
...
...
weblate/trans/views/js.py
View file @
6933907a
...
...
@@ -216,7 +216,7 @@ def mt_services(request):
Generates list of installed machine translation services in JSON.
'''
# Machine translation
machine_services
=
MACHINE_TRANSLATION_SERVICES
.
keys
(
)
machine_services
=
list
(
MACHINE_TRANSLATION_SERVICES
.
keys
()
)
return
JsonResponse
(
data
=
machine_services
,
...
...
weblate/trans/views/reports.py
View file @
6933907a
...
...
@@ -146,7 +146,7 @@ def generate_counts(component, start_date, end_date):
result
[
email
][
'words'
]
+=
words
result
[
email
][
'count'
]
+=
1
return
result
.
values
(
)
return
list
(
result
.
values
()
)
@
login_required
...
...
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