- no global named localpath, don't use built-ins like 'file' as variables.
This commit is contained in:
@@ -63,13 +63,13 @@ class XmlFile(object):
|
|||||||
except Exception, e:
|
except Exception, e:
|
||||||
raise Error(_("String '%s' has invalid XML") % (xml))
|
raise Error(_("String '%s' has invalid XML") % (xml))
|
||||||
|
|
||||||
def readxmlfile(self, file):
|
def readxmlfile(self, f):
|
||||||
raise Exception("not implemented")
|
raise Exception("not implemented")
|
||||||
try:
|
try:
|
||||||
self.doc = iks.parse(file)
|
self.doc = iks.parse(f)
|
||||||
return self.doc
|
return self.doc
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
raise Error(_("File '%s' has invalid XML") % (localpath) )
|
raise Error(_("File '%s' has invalid XML") % (f) )
|
||||||
|
|
||||||
|
|
||||||
def readxml(self, uri, tmpDir='/tmp', sha1sum=False,
|
def readxml(self, uri, tmpDir='/tmp', sha1sum=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user