diff options
| author | 2020-05-19 07:42:41 -0400 | |
|---|---|---|
| committer | 2020-05-19 07:42:41 -0400 | |
| commit | 9c0cbed99a92b49d9bd16ef6e9b8b5c246740072 (patch) | |
| tree | 612fd2fe2cd1d53dc16d3dd77efcfbc88f06a857 /bot/exts/evergreen/snakes/converter.py | |
| parent | 5/19 - evergreen | triva - fixed utf-8 bugs for windows (diff) | |
5/19 - bot | xmas, easter, evergreen - updated open statesments with explicit encoding
Diffstat (limited to 'bot/exts/evergreen/snakes/converter.py')
| -rw-r--r-- | bot/exts/evergreen/snakes/converter.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/exts/evergreen/snakes/converter.py b/bot/exts/evergreen/snakes/converter.py index d4e93b56..55609b8e 100644 --- a/bot/exts/evergreen/snakes/converter.py +++ b/bot/exts/evergreen/snakes/converter.py @@ -63,12 +63,12 @@ class Snake(Converter):          """Build list of snakes from the static snake resources."""          # Get all the snakes          if cls.snakes is None: -            with (SNAKE_RESOURCES / "snake_names.json").open() as snakefile: +            with (SNAKE_RESOURCES / "snake_names.json").open(encoding="utf8") as snakefile:                  cls.snakes = json.load(snakefile)          # Get the special cases          if cls.special_cases is None: -            with (SNAKE_RESOURCES / "special_snakes.json").open() as snakefile: +            with (SNAKE_RESOURCES / "special_snakes.json").open(encoding="utf8") as snakefile:                  special_cases = json.load(snakefile)              cls.special_cases = {snake['name'].lower(): snake for snake in special_cases} | 
