From 62bda0b241b8638c94a0a95fbc801d8743340bf3 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sat, 15 Oct 2022 09:36:54 -0400 Subject: [PATCH] Drop workarounds for Python 3.10 and older --- check-null-licenses | 5 +---- llhttp.spec | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/check-null-licenses b/check-null-licenses index bf3d7d4..9a62acc 100755 --- a/check-null-licenses +++ b/check-null-licenses @@ -6,10 +6,7 @@ from argparse import ArgumentParser, FileType, RawDescriptionHelpFormatter from pathlib import Path from sys import exit, stderr -try: - import tomllib -except ImportError: - import tomli as tomllib +import tomllib def main(): diff --git a/llhttp.spec b/llhttp.spec index 042378b..8423fba 100644 --- a/llhttp.spec +++ b/llhttp.spec @@ -71,7 +71,6 @@ BuildRequires: gcc-c++ # For check-null-licenses BuildRequires: python3-devel -BuildRequires: (python3dist(tomli) if python3 < 3.11) %description This project is a port of http_parser to TypeScript. llparse is used to