From 143ad555a0bf9bfc2af939706ac3381503fa7e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 4 Dec 2006 11:14:22 +0000 Subject: [PATCH] - no global named localpath, don't use built-ins like 'file' as variables. --- pisi/pxml/xmlfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pisi/pxml/xmlfile.py b/pisi/pxml/xmlfile.py index d49eb9cf..263624a4 100644 --- a/pisi/pxml/xmlfile.py +++ b/pisi/pxml/xmlfile.py @@ -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,