From 57c0ff6f85e4702c7b3e83f4234385dd43597d9a Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Sat, 8 Jun 2019 10:20:53 +0200 Subject: [PATCH] Removing prints from slimmer --- slim_sskj.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/slim_sskj.py b/slim_sskj.py index 50c75a0..640c6e5 100644 --- a/slim_sskj.py +++ b/slim_sskj.py @@ -21,7 +21,6 @@ for word in root.iterfind('.//w'): good_s.add(".".join(word.attrib['id'].split('.')[:-1])) for div in root.iterfind('.//div'): - print("div ", div.attrib['id']) good_d = False for par in div.iterfind('./p'): @@ -29,9 +28,7 @@ for div in root.iterfind('.//div'): for s in par.iterfind('./s'): if s.attrib['id'] not in good_s: par.remove(s) - print("remove", s.attrib) else: - print("keep", s.attrib) good_p = True if not good_p: