another open=>io.open change, as John advised
svn: r21721
This commit is contained in:
parent
8835e3f133
commit
d135d2f55b
@ -40,6 +40,7 @@ if sys.version_info[0] < 3:
|
||||
import ConfigParser as configparser
|
||||
else:
|
||||
import configparser
|
||||
import io
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -192,10 +193,7 @@ class GrampletBar(Gtk.Notebook):
|
||||
"""
|
||||
filename = self.configfile
|
||||
try:
|
||||
if win() and not sys.version_info[0] < 3:
|
||||
fp = open(filename, "w", encoding='utf-8')
|
||||
else:
|
||||
fp = open(filename, "w")
|
||||
fp = io.open(filename, "w", encoding='utf-8')
|
||||
except IOError:
|
||||
print("Failed writing '%s'; gramplets not saved" % filename)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user