mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 18:12:21 +02:00
commit
f7e11fd722
5 changed files with 8 additions and 15 deletions
|
@ -8,8 +8,7 @@ data_dir = Path(__file__).parent
|
|||
|
||||
|
||||
def load(filename):
|
||||
# add str(...) for Python 3.5
|
||||
with open(str(data_dir / filename), encoding='utf-8') as fd:
|
||||
with open(data_dir / filename, encoding='utf-8') as fd:
|
||||
return json.load(fd)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue