From 9f72ccc03a92f074a76caf44b938c9d7820b904c Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Sun, 14 Mar 2021 11:31:13 +0100 Subject: [PATCH] refactors for #17 to get div children --- frontend/wikicms.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/wikicms.py b/frontend/wikicms.py index 8b2bf22..86cb980 100644 --- a/frontend/wikicms.py +++ b/frontend/wikicms.py @@ -128,7 +128,7 @@ def doFilter(self,html,filterKeys): if "parser-output" in filterKeys: parserdiv=soup.find('div',{"class": "mw-parser-output"}) if parserdiv: - soup=parserdiv.children.__next__() + soup=parserdiv pass # https://stackoverflow.com/questions/5041008/how-to-find-elements-by-class if "editsection" in filterKeys: diff --git a/setup.py b/setup.py index f138c47..4ea438a 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ long_description = open('../../README.md').read() setup(name='pyWikiCMS', - version='0.0.10', + version='0.0.11', description='python implementation of a Mediawiki based Content Management System', long_description=long_description, long_description_content_type='text/markdown',