From 5ef63e62b2cb006d1998ab8bdc442bfb89d8829d Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Wed, 17 Apr 2024 16:13:05 +0200 Subject: [PATCH] chore: remove python 2 import (#227) --- extruct/w3cmicrodata.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/extruct/w3cmicrodata.py b/extruct/w3cmicrodata.py index 97647271..203d40fd 100644 --- a/extruct/w3cmicrodata.py +++ b/extruct/w3cmicrodata.py @@ -15,11 +15,7 @@ import collections from functools import partial from typing import Any, Set - -try: - from urlparse import urljoin -except ImportError: - from urllib.parse import urljoin +from urllib.parse import urljoin import html_text import lxml.etree