Skip to content

Commit

Permalink
Version 1.21.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bsongis committed Jan 3, 2018
1 parent b6dba36 commit 11f7f71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
import codecs
import os.path
import datetime
if sys.platform == "darwin":
from ConfigParser import ConfigParser
else:
if sys.platform == "win32" or sys.version_info > (3, 0):
from configparser import ConfigParser
else:
from ConfigParser import ConfigParser
from constants import *
from progress import *
import numeros_facture
Expand Down Expand Up @@ -262,7 +262,10 @@ def load(self, path=None, progress_handler=default_progress_handler):

if path:
try:
parser.read(path, encoding="utf-8")
if sys.platform == "win32" or sys.version_info > (3, 0):
parser.read(path, encoding="utf-8")
else:
parser.read(path)
self.path = path
except:
progress_handler.display("Fichier %s erroné. Utilisation de la configuration par défaut." % path)
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# You should have received a copy of the GNU General Public License
# along with Gertrude; if not, see <http://www.gnu.org/licenses/>.

VERSION = '1.21.2'
VERSION = '1.21.3'

0 comments on commit 11f7f71

Please sign in to comment.