Skip to content

Commit a007f86

Browse files
committed
Remove six dependency, use stdlib urllib.parse
The project requires Python >=3.9, so six (a Python 2/3 compat library) is unnecessary. Replace all six.moves.urllib imports in examples with their stdlib equivalents and remove six from test dependencies. https://claude.ai/code/session_01Up7npYZdfHZ4A4fpzFTAo2
1 parent 3a7840e commit a007f86

6 files changed

Lines changed: 7 additions & 7 deletions

examples/sync_funcaptcha_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from os import environ
33

44
import requests
5-
from six.moves.urllib import parse
5+
from urllib import parse
66

77
from python_anticaptcha import AnticaptchaClient, FunCaptchaTask
88

examples/sync_funcaptcha_selenium.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from random import choice
44

55
from selenium.webdriver.common.by import By
6-
from six.moves.urllib import parse
7-
from six.moves.urllib.parse import quote
6+
from urllib import parse
7+
from urllib.parse import quote
88

99
from python_anticaptcha import AnticaptchaClient, FunCaptchaTask
1010

examples/sync_funcaptcha_selenium_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from os import environ
66

77
from selenium.webdriver.common.by import By
8-
from six.moves.urllib.parse import quote
8+
from urllib.parse import quote
99

1010
from python_anticaptcha import AnticaptchaClient, FunCaptchaProxylessTask
1111

examples/sync_hcaptcha_request_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from os import environ
33

44
import requests
5-
from six.moves.urllib import parse
5+
from urllib import parse
66

77
from python_anticaptcha import AnticaptchaClient, HCaptchaTask
88

examples/sync_recaptcha3_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from os import environ
33

44
import requests
5-
from six.moves.urllib_parse import urljoin
5+
from urllib.parse import urljoin
66

77
from python_anticaptcha import AnticaptchaClient, RecaptchaV3TaskProxyless
88

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Homepage = "https://github.com/ad-m/python-anticaptcha"
3030

3131
[project.optional-dependencies]
3232
async = ["httpx>=0.24"]
33-
tests = ["pytest", "pytest-asyncio", "httpx>=0.24", "retry", "selenium", "six"]
33+
tests = ["pytest", "pytest-asyncio", "httpx>=0.24", "retry", "selenium"]
3434
docs = ["sphinx", "sphinx-rtd-theme"]
3535

3636
[tool.setuptools.package-data]

0 commit comments

Comments
 (0)