From 09d3cb58e04603512bf740a8bed8dc81c2805588 Mon Sep 17 00:00:00 2001 From: mohab Date: Wed, 17 Mar 2021 19:55:06 +0200 Subject: [PATCH] extractor summary list definition is simplified --- wikiextractor/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wikiextractor/extract.py b/wikiextractor/extract.py index 0af5b1f..f90c592 100644 --- a/wikiextractor/extract.py +++ b/wikiextractor/extract.py @@ -205,7 +205,7 @@ def compact(text, mark_headers=False): if line.startswith('=='): summary_finished=True if summary_finished and summary_opened: - summary = [i for i in page] + summary = page page = [] # Handle section titles m = section.match(line)