bytes/str fix

This commit is contained in:
Andreas Preikschat 2013-06-23 16:38:41 +02:00
parent b53ed99eea
commit 8fe2aed62f

View File

@ -637,7 +637,7 @@ class ThemeManager(QtGui.QWidget):
out_file = None out_file = None
try: try:
out_file = open(theme_file, u'w') out_file = open(theme_file, u'w')
out_file.write(theme_pretty_xml) out_file.write(theme_pretty_xml.decode('UTF-8'))
except IOError: except IOError:
log.exception(u'Saving theme to file failed') log.exception(u'Saving theme to file failed')
finally: finally: