- no global named localpath, don't use built-ins like 'file' as variables.

This commit is contained in:
Barış Metin
2006-12-04 11:14:22 +00:00
parent 8f663a4023
commit 143ad555a0
+3 -3
View File
@@ -63,13 +63,13 @@ class XmlFile(object):
except Exception, e:
raise Error(_("String '%s' has invalid XML") % (xml))
def readxmlfile(self, file):
def readxmlfile(self, f):
raise Exception("not implemented")
try:
self.doc = iks.parse(file)
self.doc = iks.parse(f)
return self.doc
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,