mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-10 19:21:01 +00:00
replace xml.dom.ext by xml.dom.minidom
This commit is contained in:
1 parent
4d2c734781
commit
3877f3001f
1 file changed
+5
-2
@@ -6,7 +6,7 @@ import webdavlib
|
||||
|
||||
import sys
|
||||
import getopt
|
||||
import xml.dom.ext
|
||||
import xml.dom.minidom
|
||||
|
||||
def parseArguments():
|
||||
arguments = {}
|
||||
@@ -43,4 +43,7 @@ print propfind.response["body"]
|
||||
|
||||
if propfind.response.has_key("document"):
|
||||
sys.stderr.write("document tree:\n")
|
||||
xml.dom.ext.PrettyPrint(propfind.response["document"])
|
||||
elem = propfind.response["document"]
|
||||
dom = xml.dom.minidom.parseString(xml.etree.ElementTree.tostring(elem))
|
||||
print dom.toprettyxml()
|
||||
|
||||
Reference in new issue
Block a user