Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix error when reading file on a non-utf-8 locale
[modules/shaper.git]
/
src
/
PythonAddons
/
macros
/
pipeNetwork
/
feature.py
diff --git
a/src/PythonAddons/macros/pipeNetwork/feature.py
b/src/PythonAddons/macros/pipeNetwork/feature.py
index a22632084c9882f73ff1a00cda9974d7b37b652a..e857f7e483141984fecd00bbfcccb7ddf0d875cb 100755
(executable)
--- a/
src/PythonAddons/macros/pipeNetwork/feature.py
+++ b/
src/PythonAddons/macros/pipeNetwork/feature.py
@@
-696,7
+696,7
@@
Il est nommé conformément au noeud d'application. Cela n'a qu'un intérêt gra
while True:
# B.1. Lecture du fichier
- with open(filepath) as afile:
+ with open(filepath
, encoding='utf-8'
) as afile:
summary = 0
method = self.parligne
for line in afile: