remove unused import (util). do not re-import from minidom, use mdom instead (xmlfile).
This commit is contained in:
@@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
# standard python modules
|
# standard python modules
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import sha
|
import sha
|
||||||
import shutil
|
import shutil
|
||||||
import statvfs
|
import statvfs
|
||||||
|
|||||||
+1
-2
@@ -35,8 +35,7 @@ class XmlFile(object):
|
|||||||
|
|
||||||
def newDOM(self):
|
def newDOM(self):
|
||||||
"""clear DOM"""
|
"""clear DOM"""
|
||||||
from xml.dom.minidom import getDOMImplementation
|
impl = mdom.getDOMImplementation()
|
||||||
impl = getDOMImplementation()
|
|
||||||
self.dom = impl.createDocument(None, self.rootTag, None)
|
self.dom = impl.createDocument(None, self.rootTag, None)
|
||||||
|
|
||||||
def unlink(self):
|
def unlink(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user