mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +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
|
||||
"""
|
||||
|
||||
children = element.getchildren()
|
||||
children = list(element)
|
||||
|
||||
if len(children) == 0:
|
||||
return self._type_convert(element.text)
|
||||
|
|
Loading…
Reference in New Issue
Block a user