From 34459df2f349f3b5e524aa113696715764105fb8 Mon Sep 17 00:00:00 2001 From: Mike Stucka Date: Tue, 3 Sep 2024 07:54:26 -0400 Subject: [PATCH] Linted. Oops. --- clean/ca/chula_vista_pd.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clean/ca/chula_vista_pd.py b/clean/ca/chula_vista_pd.py index 9168cbcb..e987d291 100644 --- a/clean/ca/chula_vista_pd.py +++ b/clean/ca/chula_vista_pd.py @@ -79,10 +79,12 @@ def scrape_meta(self, throttle=0): title = title.replace("\u00a0", " ").replace("\u2014", "--") redirect_start = "/?splash=" redirect_end = "&____isexternal=true" - + # Clean up links. Check to see if it's a redirect: if redirect_start in link_href: - link_href = link_href.replace(redirect_start, "").replace(redirect_end, "") + link_href = link_href.replace(redirect_start, "").replace( + redirect_end, "" + ) link_href = urllib.parse.unquote(link_href) name = title else: