Code Review
/
sdc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Force encoding while reading files in init scripts
[sdc.git]
/
catalog-be
/
src
/
main
/
resources
/
scripts
/
sdcBePy
/
tosca
/
models
/
normativeToUpdateList.py
diff --git
a/catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeToUpdateList.py
b/catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeToUpdateList.py
index
6537b1c
..
ed7fb75
100644
(file)
--- a/
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeToUpdateList.py
+++ b/
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeToUpdateList.py
@@
-11,7
+11,7
@@
class TypesToUpdate:
def load_files(self, files):
for file in files:
- with open(file, 'r') as stream:
+ with open(file, 'r'
, encoding='utf-8'
) as stream:
_types = json.load(stream)
for type_key, type_value in _types.items():
self.types_list[type_key] = type_value