Test
svn: r6986
This commit is contained in:
parent
724f41b4b8
commit
b0dfc2a0cc
@ -160,7 +160,7 @@ class XmlWriter(UpdateCallback):
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
self.fileroot = os.path.dirname(filename)
|
self.fileroot = os.path.dirname(filename)
|
||||||
try:
|
# try:
|
||||||
if self.compress:
|
if self.compress:
|
||||||
try:
|
try:
|
||||||
g = gzip.open(filename,"wb")
|
g = gzip.open(filename,"wb")
|
||||||
@ -168,9 +168,9 @@ class XmlWriter(UpdateCallback):
|
|||||||
g = open(filename,"w")
|
g = open(filename,"w")
|
||||||
else:
|
else:
|
||||||
g = open(filename,"w")
|
g = open(filename,"w")
|
||||||
except IOError,msg:
|
# except IOError,msg:
|
||||||
ErrorDialog(_('Failure writing %s') % filename,msg)
|
ErrorDialog(_('Failure writing %s') % filename,msg)
|
||||||
return 0
|
# return 0
|
||||||
|
|
||||||
self.g = codecs.getwriter("utf8")(g)
|
self.g = codecs.getwriter("utf8")(g)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user