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
2c56c1b9
Commit
2c56c1b9
authored
Mar 19, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify import code
parent
cc657a61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
trans/checks/__init__.py
trans/checks/__init__.py
+1
-2
trans/machine/__init__.py
trans/machine/__init__.py
+1
-2
No files found.
trans/checks/__init__.py
View file @
2c56c1b9
...
...
@@ -24,8 +24,7 @@ from django.core.exceptions import ImproperlyConfigured
# Initialize checks list
CHECKS
=
{}
for
path
in
appsettings
.
CHECK_LIST
:
i
=
path
.
rfind
(
'.'
)
module
,
attr
=
path
[:
i
],
path
[
i
+
1
:]
module
,
attr
=
path
.
rsplit
(
'.'
,
1
)
try
:
mod
=
__import__
(
module
,
{},
{},
[
attr
])
except
ImportError
as
e
:
...
...
trans/machine/__init__.py
View file @
2c56c1b9
...
...
@@ -24,8 +24,7 @@ from django.core.exceptions import ImproperlyConfigured
# Initialize checks list
SERVICES
=
{}
for
path
in
appsettings
.
MACHINE_TRANSLATION_SERVICES
:
i
=
path
.
rfind
(
'.'
)
module
,
attr
=
path
[:
i
],
path
[
i
+
1
:]
module
,
attr
=
path
.
rsplit
(
'.'
,
1
)
try
:
mod
=
__import__
(
module
,
{},
{},
[
attr
])
except
ImportError
as
e
:
...
...
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