mirror of
https://github.com/Tiendil/pynames.git
synced 2026-01-04 19:28:49 +01:00
Иправлена ошибка при открытии юникодных файлов в Python 3
This commit is contained in:
parent
71194bfea9
commit
22b14793b6
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class FromListGenerator(BaseGenerator):
|
|||
raise NotImplementedError(error_msg)
|
||||
|
||||
|
||||
with open(self.SOURCE) as f:
|
||||
with open(self.SOURCE, encoding='utf-8') as f:
|
||||
names_data = json.load(f, encoding='utf-8')
|
||||
self.native_language = names_data['native_language']
|
||||
self.languages = set(names_data['languages'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue