add do_not_archive to class

This commit is contained in:
Barbara Miller 2018-02-15 13:56:14 -08:00
parent 982700d503
commit 483ed8016e

View File

@ -330,7 +330,7 @@ class RecordedUrl:
warcprox_meta=None, content_type=None, custom_type=None,
status=None, size=None, client_ip=None, method=None,
timestamp=None, host=None, duration=None, referer=None,
payload_digest=None, warc_records=None):
payload_digest=None, warc_records=None, do_not_archive=False):
# XXX should test what happens with non-ascii url (when does
# url-encoding happen?)
if type(url) is not bytes:
@ -370,6 +370,7 @@ class RecordedUrl:
self.referer = referer
self.payload_digest = payload_digest
self.warc_records = warc_records
self.do_not_archive = do_not_archive
# inherit from object so that multiple inheritance from this class works
# properly in python 2