From 5cab55c74b9b43eb44f06df97d9eacb3e6a00046 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 12 Aug 2024 09:54:06 -0700 Subject: [PATCH] style: format code with linter --- aider/scrape.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/aider/scrape.py b/aider/scrape.py index 7d72b5db0..282bf7cdc 100755 --- a/aider/scrape.py +++ b/aider/scrape.py @@ -2,7 +2,6 @@ import re import sys -import re import pypandoc @@ -104,7 +103,9 @@ class Scraper: return None # Check if the content is HTML based on MIME type or content - if (mime_type and mime_type.startswith("text/html")) or (mime_type is None and self.looks_like_html(content)): + if (mime_type and mime_type.startswith("text/html")) or ( + mime_type is None and self.looks_like_html(content) + ): self.try_pandoc() content = self.html_to_markdown(content) @@ -117,13 +118,13 @@ class Scraper: if isinstance(content, str): # Check for common HTML tags html_patterns = [ - r'', - r'", + r"