From 3ec97e55283ed88be6ea3df89266378dda5fe09f Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Thu, 2 Jul 2020 03:22:37 -0400 Subject: [PATCH] fix git conflict commited by accident --- archivebox/util.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/archivebox/util.py b/archivebox/util.py index 717e1185..4ba1e3dd 100644 --- a/archivebox/util.py +++ b/archivebox/util.py @@ -60,14 +60,12 @@ URL_REGEX = re.compile( re.IGNORECASE, ) -<<<<<<< HEAD COLOR_REGEX = re.compile(r'\[(?P\d+)(;(?P\d+)(;(?P\d+))?)?m') -======= + def is_static_file(url: str): # TODO: the proper way is with MIME type detection + ext, not only extension from .config import STATICFILE_EXTENSIONS return extension(url).lower() in STATICFILE_EXTENSIONS ->>>>>>> c1fe068... remove circular import possibilities def enforce_types(func): @@ -204,7 +202,7 @@ def ansi_to_html(text): Based on: https://stackoverflow.com/questions/19212665/python-converting-ansi-color-codes-to-html """ from .config import COLOR_DICT - + TEMPLATE = '
' text = text.replace('[m', '
')