Jelajahi Sumber

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

Tomas Zigo 5 tahun lalu
induk
melakukan
545c77107b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)