瀏覽代碼

wxGUI g.gui.rlisetup: fix config file open mode for write in text mode (#410)

Tomas Zigo 5 年之前
父節點
當前提交
545c77107b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/rlisetup/wizard.py

+ 1 - 1
gui/wxpython/rlisetup/wizard.py

@@ -144,7 +144,7 @@ class RLIWizard(object):
 
     def _write_confile(self):
         """Write the configuration file"""
-        f = open(os.path.join(self.rlipath, self.startpage.conf_name), 'wb')
+        f = open(os.path.join(self.rlipath, self.startpage.conf_name), 'w')
         self.rasterinfo = grast.raster_info(self.startpage.rast)
         self._write_region(f)
         self._write_area(f)