1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-14 15:53:28 +01:00

chore(typos): fix typos across codebase (#811)

Co-authored-by: stavares843 <stavares843@users.noreply.github.com>
This commit is contained in:
Sara Tavares 2023-02-15 18:04:20 +00:00 committed by GitHub
parent 4a3e7ddff7
commit c441d83435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 14 deletions

View File

@ -1181,7 +1181,7 @@ pywb 0.9.6 changelist
pywb 0.9.5 changelist pywb 0.9.5 changelist
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
* s3 loading: support ``s3://`` scheme in block loader, allowing for loading index and archive files from s3. ``boto`` library must be installed seperately * s3 loading: support ``s3://`` scheme in block loader, allowing for loading index and archive files from s3. ``boto`` library must be installed separately
via ``pip install boto``. Attempt default boto auth path, and if that fails, attempt anonymous s3 connection. via ``pip install boto``. Attempt default boto auth path, and if that fails, attempt anonymous s3 connection.
* Wombat/Client-Side Rewrite Customizations: New ``rewrite_opts.client`` settings from ``config.yaml`` are passed directly to wombat as json. * Wombat/Client-Side Rewrite Customizations: New ``rewrite_opts.client`` settings from ``config.yaml`` are passed directly to wombat as json.
@ -1277,7 +1277,7 @@ pywb 0.9.1 changelist
* cdx server query: add support for ``url=*.host`` and ``url=host/*`` as shortcuts for ``matchType=domain`` and ``matchType=prefix`` * cdx server query: add support for ``url=*.host`` and ``url=host/*`` as shortcuts for ``matchType=domain`` and ``matchType=prefix``
* zipnum cdx cluster: support loading index shared from prefix path instead of seperate location file. * zipnum cdx cluster: support loading index shared from prefix path instead of separate location file.
The ``shard_index_loc`` config property may contain match and replace properties. The ``shard_index_loc`` config property may contain match and replace properties.
Regex replacement is then used to obtain path prefix from the shard prefix path. Regex replacement is then used to obtain path prefix from the shard prefix path.
@ -1643,7 +1643,7 @@ pywb 0.4.7 changelist
* Rewrite: Parsing of html as raw bytes instead of decode/encode, detection still needed for non-ascii compatible encoding. * Rewrite: Parsing of html as raw bytes instead of decode/encode, detection still needed for non-ascii compatible encoding.
* Indexing: Refactoring of cdx-indexer using a seperate 'archive record iterator' and pluggable cdx writer classes. Groundwork for creating custom indexers. * Indexing: Refactoring of cdx-indexer using a separate 'archive record iterator' and pluggable cdx writer classes. Groundwork for creating custom indexers.
* Indexing: Support for 9 field cdx formats with -9 flag. * Indexing: Support for 9 field cdx formats with -9 flag.

View File

@ -599,7 +599,7 @@ class FrontEndApp(object):
and message. and message.
:param dict environ: The WSGI environment dictionary for the request :param dict environ: The WSGI environment dictionary for the request
:param str err_type: The identifier for type of error that occured :param str err_type: The identifier for type of error that occurred
:param str url: The url of the archived page that was requested :param str url: The url of the archived page that was requested
""" """
raise AppPageNotFound(err_type, url) raise AppPageNotFound(err_type, url)

View File

@ -384,7 +384,7 @@ url timestamp { ... }
output_help = """ output_help = """
Output file or directory. Output file or directory.
- If directory, each input file is written to a seperate output file - If directory, each input file is written to a separate output file
with a .cdx extension with a .cdx extension
- If output is '-', output is written to stdout - If output is '-', output is written to stdout
""" """

View File

@ -102,11 +102,11 @@ class ACLManager(CollectionsManager):
except IOError as io: except IOError as io:
if must_exist: if must_exist:
print('Error Occured: ' + str(io)) print('Error Occurred: ' + str(io))
return False return False
except Exception as e: except Exception as e:
print('Error Occured: ' + str(e)) print('Error Occurred: ' + str(e))
return False return False
def save_acl(self, r=None): def save_acl(self, r=None):

View File

@ -268,7 +268,7 @@ class HTMLRewriterMixin(StreamingRewriter):
unesc_value = self.try_unescape(value) unesc_value = self.try_unescape(value)
rewritten_value = self.url_rewriter.rewrite(unesc_value, mod, force_abs) rewritten_value = self.url_rewriter.rewrite(unesc_value, mod, force_abs)
# if no rewriting has occured, ensure we return original, not reencoded value # if no rewriting has occurred, ensure we return original, not reencoded value
if rewritten_value == value: if rewritten_value == value:
return orig_value return orig_value
@ -668,7 +668,7 @@ class HTMLRewriter(HTMLRewriterMixin, HTMLParser):
if self.parse_comments: if self.parse_comments:
#data = self._rewrite_script(data) #data = self._rewrite_script(data)
# Rewrite with seperate HTMLRewriter # Rewrite with separate HTMLRewriter
comment_rewriter = HTMLRewriter(self.url_rewriter, comment_rewriter = HTMLRewriter(self.url_rewriter,
defmod=self.defmod) defmod=self.defmod)

View File

@ -150,7 +150,7 @@ def iter_exact(reader, key, token=b' '):
""" """
Create an iterator which iterates over lines where the first field matches Create an iterator which iterates over lines where the first field matches
the 'key', equivalent to token + sep prefix. the 'key', equivalent to token + sep prefix.
Default field termin_ator/seperator is ' ' Default field termin_ator/separator is ' '
""" """
return iter_prefix(reader, key + token) return iter_prefix(reader, key + token)

View File

@ -32,7 +32,7 @@ export class PywbI18N {
getMonth(id, type='long') { getMonth(id, type='long') {
return decodeURIComponent(this.config[PywbI18N.monthIdPrefix[id]+'_'+type]); return decodeURIComponent(this.config[PywbI18N.monthIdPrefix[id]+'_'+type]);
} }
// can get long (default) or short day string or intial // can get long (default) or short day string or initial
// PywbI18N expects to receive day's initials like: // PywbI18N expects to receive day's initials like:
// config.mon_short, config.tue_long, ...., config.<mmm>_short, config.<mmm>_long // config.mon_short, config.tue_long, ...., config.<mmm>_short, config.<mmm>_long
getWeekDay(id, type='long') { getWeekDay(id, type='long') {

View File

@ -537,7 +537,7 @@ class TestManagedColls(CollsDirMixin, BaseConfigTest):
main(['template', 'foo', '--remove', 'query_html']) main(['template', 'foo', '--remove', 'query_html'])
def test_err_no_such_coll(self): def test_err_no_such_coll(self):
""" Test error adding warc to non-existant collection """ Test error adding warc to non-existent collection
""" """
warc1 = self._get_sample_warc('example.warc.gz') warc1 = self._get_sample_warc('example.warc.gz')

View File

@ -400,7 +400,7 @@ class TestWbIntegration(BaseConfigTest):
assert resp.status_int == 200 assert resp.status_int == 200
assert resp.headers['Content-Location'].endswith('/pywb/20140126200928{0}/http://www.iana.org/domains/root/db'.format(fmod)) assert resp.headers['Content-Location'].endswith('/pywb/20140126200928{0}/http://www.iana.org/domains/root/db'.format(fmod))
def test_not_existant_warc_other_capture(self, fmod): def test_not_existent_warc_other_capture(self, fmod):
resp = self.get('/pywb/20140703030321{0}/http://example.com/?example=2', fmod) resp = self.get('/pywb/20140703030321{0}/http://example.com/?example=2', fmod)
assert resp.status_int == 200 assert resp.status_int == 200
assert resp.headers['Content-Location'].endswith('/pywb/20140603030341{0}/http://example.com?example=2'.format(fmod)) assert resp.headers['Content-Location'].endswith('/pywb/20140603030341{0}/http://example.com?example=2'.format(fmod))
@ -410,7 +410,7 @@ class TestWbIntegration(BaseConfigTest):
assert resp.status_int == 200 assert resp.status_int == 200
assert resp.headers['Content-Location'].endswith('/pywb/20140603030341{0}/http://example.com?example=2'.format(fmod)) assert resp.headers['Content-Location'].endswith('/pywb/20140603030341{0}/http://example.com?example=2'.format(fmod))
def test_not_existant_warc_no_other(self, fmod): def test_not_existent_warc_no_other(self, fmod):
resp = self.get('/pywb/20140703030321{0}/http://example.com/?example=3', fmod, status=503) resp = self.get('/pywb/20140703030321{0}/http://example.com/?example=3', fmod, status=503)
assert resp.status_int == 503 assert resp.status_int == 503