From b8e727cfd42db5b4aa487ee12c04955e007fb16f Mon Sep 17 00:00:00 2001 From: io Date: Mon, 26 Jul 2021 06:04:14 +0000 Subject: [PATCH] fetch_posts.py: remove unused import --- fetch_posts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fetch_posts.py b/fetch_posts.py index 16c1f4e..158af02 100755 --- a/fetch_posts.py +++ b/fetch_posts.py @@ -8,7 +8,6 @@ import platform import pendulum import aiosqlite import contextlib -from yarl import URL from utils import shield from pleroma import Pleroma from bs4 import BeautifulSoup @@ -186,7 +185,7 @@ class PostFetcher: try: # note: the server might decide to return multiple links # so we need to decide how to prefer one. - # i'd put "and URL(template).host == instance" here, + # i'd put "and yarl.URL(template).host == instance" here, # but some instances have no subdomain for the handle yet use a subdomain for the canonical URL. # Additionally, an instance could theoretically serve profile pages over I2P and the clearnet, # for example.