summaryrefslogtreecommitdiff
path: root/src/lxml/apihelpers.pxi
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2013-09-11 21:30:44 +0200
committerStefan Behnel <stefan_ml@behnel.de>2013-09-11 21:30:44 +0200
commit9b731c6ac9f8289a1ff3a24ff497e32004e2b6b8 (patch)
treede28a4abf301ef5dd8b5c990e25180ef158e2424 /src/lxml/apihelpers.pxi
parent3498e237d5e06362922b0bf7321fff4e337bd29a (diff)
downloadpython-lxml-9b731c6ac9f8289a1ff3a24ff497e32004e2b6b8.tar.gz
remove some unnecessary type declarations
--HG-- extra : transplant_source : %7DH7%21K%3D%B0U%8Dt%06%E3%8BQ%BC%DF%B9%D6%18R
Diffstat (limited to 'src/lxml/apihelpers.pxi')
-rw-r--r--src/lxml/apihelpers.pxi21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/lxml/apihelpers.pxi b/src/lxml/apihelpers.pxi
index d88f215e..02296866 100644
--- a/src/lxml/apihelpers.pxi
+++ b/src/lxml/apihelpers.pxi
@@ -1193,9 +1193,8 @@ cdef int _replaceSlice(_Element parent, xmlNode* c_node,
cdef int _appendChild(_Element parent, _Element child) except -1:
u"""Append a new child to a parent element.
"""
- cdef xmlNode* c_next
- cdef xmlNode* c_node = child._c_node
- cdef xmlDoc* c_source_doc = c_node.doc
+ c_node = child._c_node
+ c_source_doc = c_node.doc
# store possible text node
c_next = c_node.next
# move node itself
@@ -1209,10 +1208,8 @@ cdef int _appendChild(_Element parent, _Element child) except -1:
cdef int _prependChild(_Element parent, _Element child) except -1:
u"""Prepend a new child to a parent element.
"""
- cdef xmlNode* c_next
- cdef xmlNode* c_child
- cdef xmlNode* c_node = child._c_node
- cdef xmlDoc* c_source_doc = c_node.doc
+ c_node = child._c_node
+ c_source_doc = c_node.doc
# store possible text node
c_next = c_node.next
# move node itself
@@ -1230,9 +1227,8 @@ cdef int _prependChild(_Element parent, _Element child) except -1:
cdef int _appendSibling(_Element element, _Element sibling) except -1:
u"""Append a new child to a parent element.
"""
- cdef xmlNode* c_node = sibling._c_node
- cdef xmlDoc* c_source_doc = c_node.doc
- cdef xmlNode* c_next
+ c_node = sibling._c_node
+ c_source_doc = c_node.doc
# store possible text node
c_next = c_node.next
# move node itself
@@ -1245,9 +1241,8 @@ cdef int _appendSibling(_Element element, _Element sibling) except -1:
cdef int _prependSibling(_Element element, _Element sibling) except -1:
u"""Append a new child to a parent element.
"""
- cdef xmlNode* c_node = sibling._c_node
- cdef xmlDoc* c_source_doc = c_node.doc
- cdef xmlNode* c_next
+ c_node = sibling._c_node
+ c_source_doc = c_node.doc
# store possible text node
c_next = c_node.next
# move node itself