import ile ilgili typolar..
This commit is contained in:
@@ -18,7 +18,7 @@ from pisi.ui import ui
|
||||
def handle_exception(exception, value, tb):
|
||||
import traceback
|
||||
import exceptions
|
||||
import pisi.xmlext.XmlError as XmlError
|
||||
from pisi.xmlext import XmlError
|
||||
from pisi.ui import ui
|
||||
|
||||
if exception == exceptions.KeyboardInterrupt:
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@
|
||||
# Baris Metin <baris@uludag.org.tr
|
||||
|
||||
import xml.dom.minidom as mdom
|
||||
import xml.parsers.expat.ExpatError as ExpatError
|
||||
from xml.parsers.expat import ExpatError as ExpatError
|
||||
import codecs
|
||||
|
||||
from xmlext import *
|
||||
@@ -49,7 +49,7 @@ class XmlFile(object):
|
||||
try:
|
||||
self.dom = mdom.parse(fileName)
|
||||
except ExpatError, inst:
|
||||
raise XmlError("File '%s' has invalid XML: %s" % (fileName, str(inst)))
|
||||
raise XmlError("File '%s' has invalid XML: %s\n" % (fileName, str(inst)))
|
||||
|
||||
def writexml(self, fileName):
|
||||
f = codecs.open(fileName,'w', "utf-8")
|
||||
|
||||
Reference in New Issue
Block a user