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
3fe37189
Commit
3fe37189
authored
Dec 13, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use (faster) cElementTree
parent
ba978c99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
weblate/trans/checks.py
weblate/trans/checks.py
+2
-2
No files found.
weblate/trans/checks.py
View file @
3fe37189
...
...
@@ -22,7 +22,7 @@ from django.utils.translation import ugettext_lazy as _
from
django.core.exceptions
import
ImproperlyConfigured
from
django.conf
import
settings
from
django.core.cache
import
cache
from
xml.etree
import
ElementTree
from
xml.etree
import
c
ElementTree
import
weblate
import
re
...
...
@@ -738,7 +738,7 @@ class XMLTagsCheck(TargetCheck):
Wrapper for parsing XML.
'''
text
=
self
.
strip_entities
(
text
.
encode
(
'utf-8'
))
return
ElementTree
.
fromstring
(
'<weblate>%s</weblate>'
%
text
)
return
c
ElementTree
.
fromstring
(
'<weblate>%s</weblate>'
%
text
)
def
check_single
(
self
,
source
,
target
,
flags
,
language
,
unit
):
# Try getting source string data from cache
...
...
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