mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-16 11:12:21 +03:00
Don't use deprecated xml style
This commit is contained in:
parent
2c634c0e5c
commit
97f2b99495
|
@ -149,7 +149,7 @@ class XMLParser(BaseParser):
|
||||||
convert the xml `element` into the corresponding python object
|
convert the xml `element` into the corresponding python object
|
||||||
"""
|
"""
|
||||||
|
|
||||||
children = element.getchildren()
|
children = list(element)
|
||||||
|
|
||||||
if len(children) == 0:
|
if len(children) == 0:
|
||||||
return self._type_convert(element.text)
|
return self._type_convert(element.text)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user