Skip to content

Commit

Permalink
tasks: use proper encoding to read tasknames (#147)
Browse files Browse the repository at this point in the history
* tasks: use proper encoding to read tasknames

Previously on windows we were using the locale encoding and Müller was not properly read.

* tasks: remove leftover print debug
  • Loading branch information
MatthieuDartiailh committed Jul 1, 2018
1 parent 329873f commit fb48f69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exopy/tasks/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def load_auto_task_names(self):
dict(kind='error', message=msg))
return

with open(path) as f:
with open(path, encoding='utf-8') as f:
aux = f.readlines()

self.auto_task_names = [l.rstrip() for l in aux]
Expand Down
4 changes: 2 additions & 2 deletions exopy/tasks/tasknames.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Vleck
Kapitsa
Penzias
Wilson
Glashow
Glashow
Weinberg
Salam
Cronin
Expand Down Expand Up @@ -155,7 +155,7 @@ Tsui
Hooft
Veltman
Kroemer
Alferov
Alferov
Kilby
Cornell
Wieman
Expand Down

0 comments on commit fb48f69

Please sign in to comment.