Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Brötzmann
python-nbxmpp
Commits
d9453448
Commit
d9453448
authored
Apr 09, 2014
by
Yann Leboulanger
Browse files
remove bad .encode()
parent
8e9fe049
Changes
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/c14n.py
View file @
d9453448
...
...
@@ -50,7 +50,7 @@ def c14n(node, is_buggy):
s
=
s
[:
-
1
]
+
' />'
else
:
s
=
s
+
"</"
+
node
.
name
+
">"
return
s
.
encode
(
'utf-8'
)
return
s
def
normalise_attr
(
val
):
return
val
.
replace
(
'&'
,
'&'
).
replace
(
'<'
,
'<'
).
replace
(
'"'
,
'"'
).
replace
(
'
\t
'
,
'	'
).
replace
(
'
\n
'
,
'
'
).
replace
(
'
\r
'
,
'
'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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