Commit 9b790f4516f11698fefd510ef08ef5641aa1d395

Authored by Miguel Barao
1 parent ce4cb845
Exists in master and in 1 other branch dev

- added explicit encoding utf-8 for the test configuration file.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -14,7 +14,7 @@ def read_configuration(filename, debug=False, show_points=False, show_hints=Fals @@ -14,7 +14,7 @@ def read_configuration(filename, debug=False, show_points=False, show_hints=Fals
14 # FIXME validar se ficheiros e directorios existem??? 14 # FIXME validar se ficheiros e directorios existem???
15 15
16 try: 16 try:
17 - f = open(filename, 'r') 17 + f = open(filename, 'r', encoding='utf-8')
18 except IOError: 18 except IOError:
19 print('[ ERROR ] Cannot open YAML file "%s"' % filename) 19 print('[ ERROR ] Cannot open YAML file "%s"' % filename)
20 sys.exit(1) 20 sys.exit(1)