Skip to content
Unverified Commit 0c206472 authored by Eli Schwartz's avatar Eli Schwartz
Browse files

use the standard library tomllib on sufficiently new python

In python 3.11 it is no longer necessary to vendor (?) a toml
implementation. The vendored one is now part of the standard library.
Simply use that instead.

Benefits include:
- micro-optimization when using the isort library API in an application
  that already uses tomllib, to avoid reading yet another one from
  on-disk
- seamless support for automatically dropping tomli once the minimum
  python version is upgraded, via tools such as pyupgrade
- distributors who patch out isort to use the system tomli, do not
  actually have to package tomli for versions of python that have
  tomllib
parent b67a6a59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment