]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Optimize imports.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 13 Mar 2022 16:27:53 +0000 (17:27 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sun, 13 Mar 2022 16:27:53 +0000 (17:27 +0100)
bots/sledrun_wikitext_to_json.py
wrpylib/wrmwmarkup.py

index d52abd741ac7c1113b74ccdcb31bbe060954f8a5..27d3f688434f1dbcadeae20d22e83fb04234b374 100644 (file)
@@ -10,10 +10,9 @@ The following generators and filters are supported:
 &params;
 """
 import io
 &params;
 """
 import io
-import json
 import re
 from itertools import takewhile, dropwhile
 import re
 from itertools import takewhile, dropwhile
-from typing import Any, Optional
+from typing import Optional
 
 import mwparserfromhell
 from mwparserfromhell.nodes.extras import Parameter
 
 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
 
     avalanches_german_to_str, public_transport_german_to_str, opt_lonlat_from_str, \
     opt_uint_from_str
 
-from pywikibot.site import Namespace
-
 docuReplacements = {'&params;': pagegenerators.parameterHelp}
 
 
 docuReplacements = {'&params;': pagegenerators.parameterHelp}
 
 
index 7d53a3c63e8cbc9dbcc1eef5eed4c7801d8dd929..7f302b5a1935d79e5ba5c481e0525e578ce11545 100644 (file)
@@ -1,7 +1,6 @@
 """This module contains winterrodeln specific functions that are processing the MediaWiki markup.
 """
 import re
 """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
 import xml.etree.ElementTree
 import collections
 from typing import Tuple, Optional, List, OrderedDict, Union, Dict