Skip to content

Commit

Permalink
Switch from toml to tomli dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
goodmami committed Nov 1, 2021
1 parent 66a4d74 commit 9cb4427
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wn/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Dict
from pathlib import Path

import toml
import tomli

from wn import Error
from wn._types import AnyPath
Expand Down Expand Up @@ -218,7 +218,8 @@ def load_index(self, path: AnyPath) -> None:
"""
path = Path(path).expanduser()
index = toml.load(path)
with path.open('rb') as indexfile:
index = tomli.load(indexfile)
self.update({'index': index})


Expand Down

0 comments on commit 9cb4427

Please sign in to comment.