From 55f2f7ef3cfb85a6a56c03dc69849b3085538d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20=C5=81opaciuk?= Date: Mon, 8 Jan 2018 11:09:45 +0100 Subject: [PATCH] =?UTF-8?q?parsers:=20remove=20cleanup=5Fnamespaces=20from?= =?UTF-8?q?=20JATS=20Unnecessary,=20as=20new=20version=20of=20scrapy=20han?= =?UTF-8?q?dles=20it.=20Signed-off-by:=20Szymon=20=C5=81opaciuk=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hepcrawl/parsers/jats.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/hepcrawl/parsers/jats.py b/hepcrawl/parsers/jats.py index 6a1aa524..e8a29c0d 100644 --- a/hepcrawl/parsers/jats.py +++ b/hepcrawl/parsers/jats.py @@ -20,8 +20,6 @@ from inspire_utils.date import PartialDate from inspire_utils.helpers import maybe_int, remove_tags -from lxml import etree # needed until a new release of parsel is made - from ..utils import get_first, get_node @@ -459,7 +457,6 @@ def get_root_node(jats_record): else: root = jats_record root.remove_namespaces() - etree.cleanup_namespaces(root.root) return root