[+] add tomllib option for toml_load
This commit is contained in:
parent
4d10656e0a
commit
b4199d3faa
@ -29,12 +29,12 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def toml_load(f: BinaryIO) -> Any:
|
||||
# try:
|
||||
# import tomllib
|
||||
#
|
||||
# return tomllib.load(f)
|
||||
# except:
|
||||
# pass
|
||||
try:
|
||||
import tomllib
|
||||
|
||||
return tomllib.load(f)
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
import tomli
|
||||
|
Loading…
Reference in New Issue
Block a user