svn: r6986
This commit is contained in:
Alex Roitman 2006-07-04 05:43:22 +00:00
parent 724f41b4b8
commit b0dfc2a0cc

View File

@ -160,17 +160,17 @@ class XmlWriter(UpdateCallback):
return 0
self.fileroot = os.path.dirname(filename)
try:
if self.compress:
try:
g = gzip.open(filename,"wb")
except:
g = open(filename,"w")
else:
# try:
if self.compress:
try:
g = gzip.open(filename,"wb")
except:
g = open(filename,"w")
except IOError,msg:
else:
g = open(filename,"w")
# except IOError,msg:
ErrorDialog(_('Failure writing %s') % filename,msg)
return 0
# return 0
self.g = codecs.getwriter("utf8")(g)