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
|
||||
import os
|
||||
import sys
|
||||
import sha
|
||||
import shutil
|
||||
import statvfs
|
||||
|
||||
+1
-2
@@ -35,8 +35,7 @@ class XmlFile(object):
|
||||
|
||||
def newDOM(self):
|
||||
"""clear DOM"""
|
||||
from xml.dom.minidom import getDOMImplementation
|
||||
impl = getDOMImplementation()
|
||||
impl = mdom.getDOMImplementation()
|
||||
self.dom = impl.createDocument(None, self.rootTag, None)
|
||||
|
||||
def unlink(self):
|
||||
|
||||
Reference in New Issue
Block a user