From 64d738bcded417a2a171524134623e95f27b73d5 Mon Sep 17 00:00:00 2001 From: Castro0o Date: Thu, 9 Apr 2020 18:03:16 +0200 Subject: [PATCH] removed print --- dumpwiki.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dumpwiki.py b/dumpwiki.py index d28893d..1f883ed 100644 --- a/dumpwiki.py +++ b/dumpwiki.py @@ -55,10 +55,9 @@ def rewritelinks (html): # remove links to wiki File: pages for a in t.findall(".//a[@class='image']"): # select img wrapping a - href = a.attrib.get('href') + href = a.attrib.get('href') if a.findall(".//img") and 'File:' in href: # ensure a has child: img a.attrib['href'] = 'javascript:void(0);' # disable href - print('a wrapping img:', ET.tostring(a)) for a in t.findall(".//*[@href]"): linkclass = a.attrib.get("class", "")