Skip to content

Commit

Permalink
parsers: remove cleanup_namespaces from JATS
Browse files Browse the repository at this point in the history
Unnecessary, as new version of scrapy handles it.
Signed-off-by: Szymon Łopaciuk <[email protected]>
  • Loading branch information
szymonlopaciuk committed Jan 8, 2018
1 parent 05cfb6b commit 55f2f7e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hepcrawl/parsers/jats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -459,7 +457,6 @@ def get_root_node(jats_record):
else:
root = jats_record
root.remove_namespaces()
etree.cleanup_namespaces(root.root)

return root

Expand Down

0 comments on commit 55f2f7e

Please sign in to comment.