From 995fe503c5fbf3c4bdba55257692ad2cf22d884d Mon Sep 17 00:00:00 2001 From: Sebastian Nagel Date: Thu, 2 Aug 2018 18:58:45 +0200 Subject: [PATCH] Support WARC/1.1 (work-around as this is unlikely to be implemented in the warc module) --- mrcc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mrcc.py b/mrcc.py index 07734ab..db2009a 100644 --- a/mrcc.py +++ b/mrcc.py @@ -7,6 +7,9 @@ import boto3 import botocore import warc +# work-around to enable support of WARC/1.1 +if '1.1' not in warc.warc.WARCReader.SUPPORTED_VERSIONS: + warc.warc.WARCReader.SUPPORTED_VERSIONS.append('1.1') from mrjob.job import MRJob from mrjob.util import log_to_stream