From 62447e6fc5b9d5b5e72ef346af9bae6864b706c4 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sun, 13 Mar 2022 17:27:53 +0100 Subject: [PATCH] Optimize imports. --- bots/sledrun_wikitext_to_json.py | 5 +---- wrpylib/wrmwmarkup.py | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bots/sledrun_wikitext_to_json.py b/bots/sledrun_wikitext_to_json.py index d52abd7..27d3f68 100644 --- a/bots/sledrun_wikitext_to_json.py +++ b/bots/sledrun_wikitext_to_json.py @@ -10,10 +10,9 @@ The following generators and filters are supported: ¶ms; """ import io -import json import re from itertools import takewhile, dropwhile -from typing import Any, Optional +from typing import Optional import mwparserfromhell from mwparserfromhell.nodes.extras import Parameter @@ -37,8 +36,6 @@ from wrpylib.wrvalidators import rodelbahnbox_from_template, tristate_german_to_ avalanches_german_to_str, public_transport_german_to_str, opt_lonlat_from_str, \ opt_uint_from_str -from pywikibot.site import Namespace - docuReplacements = {'¶ms;': pagegenerators.parameterHelp} diff --git a/wrpylib/wrmwmarkup.py b/wrpylib/wrmwmarkup.py index 7d53a3c..7f302b5 100644 --- a/wrpylib/wrmwmarkup.py +++ b/wrpylib/wrmwmarkup.py @@ -1,7 +1,6 @@ """This module contains winterrodeln specific functions that are processing the MediaWiki markup. """ import re -import subprocess import xml.etree.ElementTree import collections from typing import Tuple, Optional, List, OrderedDict, Union, Dict -- 2.39.5