summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-01-08 15:43:29 +0100
committerStefan Behnel <stefan_ml@behnel.de>2017-01-08 15:43:29 +0100
commit425be15f641e247e18f54ccf120fa15bb30d3237 (patch)
tree6bf9478351eed02827496868a6787a021592684c /src
parentc4efe5eb19440a5cda974acbf86dcb36a4aa305d (diff)
downloadpython-lxml-425be15f641e247e18f54ccf120fa15bb30d3237.tar.gz
fix typos in error handling code
Diffstat (limited to 'src')
-rw-r--r--src/lxml/serializer.pxi4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lxml/serializer.pxi b/src/lxml/serializer.pxi
index 0f93bb09..d16b08a1 100644
--- a/src/lxml/serializer.pxi
+++ b/src/lxml/serializer.pxi
@@ -553,7 +553,7 @@ cdef _write_attr_string(tree.xmlOutputBuffer* buf, const char *string):
if (cur[0] < 0xC0):
# invalid UTF-8 sequence
- val = char[0]
+ val = cur[0]
l = 1
elif (cur[0] < 0xE0):
@@ -581,7 +581,7 @@ cdef _write_attr_string(tree.xmlOutputBuffer* buf, const char *string):
l = 4
else:
# invalid UTF-8 sequence
- val = char[0]
+ val = cur[0]
l = 1
if ((l == 1) or (not tree.xmlIsCharQ(val))):