organized imports

This commit is contained in:
Amy G. Bowersox 2024-07-27 01:19:16 -06:00
parent e79a8b9b87
commit 7cadb9d834
4 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import sys
from dragonglass import main
sys.exit(main())

View File

@ -1,11 +1,13 @@
#!/usr/bin/env python3
import argparse
import yaml
from pathlib import Path
from typing import Any
from .tree import generate_list, SourceNode, SourceIndex
import yaml
from .mparse import create_markdown_parser
from .tree import SourceIndex, SourceNode, generate_list
# The command line parser
parser = argparse.ArgumentParser(prog='dragonglass')

View File

@ -1,14 +1,16 @@
#/usr/bin/env python3
import re
import markdown
import xml.etree.ElementTree as etree
from typing import Any
from urllib.parse import urlparse
from urllib.parse import unquote as urlunquote
from urllib.parse import urlparse
import markdown
from markdown.extensions import Extension
from markdown.inlinepatterns import InlineProcessor, SimpleTagInlineProcessor
from markdown.preprocessors import Preprocessor
from .dragonglass import Context
PRIO_BASE = 10000 # priority base for our extensions

View File

@ -3,6 +3,7 @@
from pathlib import Path
from typing import Any
from urllib.parse import quote as urlquote
import markdown
import yaml