From 5023ae77856cea436c07ab3f33b314a0a144ac54 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 6 Jan 2026 01:58:32 +0100 Subject: [PATCH] Get rid of the dependency on six --- httpbin/filters.py | 2 +- httpbin/helpers.py | 2 +- pyproject.toml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/httpbin/filters.py b/httpbin/filters.py index 4deeaaad..f75f80ce 100644 --- a/httpbin/filters.py +++ b/httpbin/filters.py @@ -12,8 +12,8 @@ import brotlicffi as _brotli -from six import BytesIO from decimal import Decimal +from io import BytesIO from time import time as now from decorator import decorator diff --git a/httpbin/helpers.py b/httpbin/helpers.py index 836c8026..c9046544 100644 --- a/httpbin/helpers.py +++ b/httpbin/helpers.py @@ -23,7 +23,7 @@ parse_authorization_header = Authorization.from_header from flask import request, make_response -from six.moves.urllib.parse import urlparse, urlunparse +from urllib.parse import urlparse, urlunparse from .structures import CaseInsensitiveDict diff --git a/pyproject.toml b/pyproject.toml index 894c5509..b585506c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,6 @@ dependencies = [ 'greenlet < 3.0; python_version<"3.12"', 'greenlet >= 3.0.0a1; python_version>="3.12.0rc0"', 'importlib-metadata; python_version<"3.8"', - "six", "werkzeug >= 2.2.2", ]