From 332a32f4f9b6f548d9a61495ec9008667ca1f5f6 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Sat, 20 Apr 2019 02:59:44 -0500 Subject: [PATCH] Resolve 3 typos in util.py --- archivebox/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archivebox/util.py b/archivebox/util.py index cec23035..3c08c9bb 100644 --- a/archivebox/util.py +++ b/archivebox/util.py @@ -66,7 +66,7 @@ HTML_TITLE_REGEX = re.compile( re.IGNORECASE | re.MULTILINE | re.DOTALL | re.UNICODE, ) STATICFILE_EXTENSIONS = { - # 99.999% of the time, URLs ending in these extentions are static files + # 99.999% of the time, URLs ending in these extensions are static files # that can be downloaded as-is, not html pages that need to be rendered 'gif', 'jpeg', 'jpg', 'png', 'tif', 'tiff', 'wbmp', 'ico', 'jng', 'bmp', 'svg', 'svgz', 'webp', 'ps', 'eps', 'ai', @@ -82,7 +82,7 @@ STATICFILE_EXTENSIONS = { # pl pm, prc pdb, rar, rpm, sea, sit, tcl tk, der, pem, crt, xpi, xspf, # ra, mng, asx, asf, 3gpp, 3gp, mid, midi, kar, jad, wml, htc, mml - # Thse are always treated as pages, not as static files, never add them: + # These are always treated as pages, not as static files, never add them: # html, htm, shtml, xhtml, xml, aspx, php, cgi } @@ -293,7 +293,7 @@ def str_between(string, start, end=None): ### Link Helpers def merge_links(a, b): - """deterministially merge two links, favoring longer field values over shorter, + """deterministically merge two links, favoring longer field values over shorter, and "cleaner" values over worse ones. """ longer = lambda key: (a[key] if len(a[key]) > len(b[key]) else b[key]) if (a[key] and b[key]) else (a[key] or b[key])