organized imports
This commit is contained in:
parent
e79a8b9b87
commit
7cadb9d834
|
@ -1,4 +1,5 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from dragonglass import main
|
from dragonglass import main
|
||||||
|
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import yaml
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from .tree import generate_list, SourceNode, SourceIndex
|
|
||||||
|
import yaml
|
||||||
|
|
||||||
from .mparse import create_markdown_parser
|
from .mparse import create_markdown_parser
|
||||||
|
from .tree import SourceIndex, SourceNode, generate_list
|
||||||
|
|
||||||
# The command line parser
|
# The command line parser
|
||||||
parser = argparse.ArgumentParser(prog='dragonglass')
|
parser = argparse.ArgumentParser(prog='dragonglass')
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
#/usr/bin/env python3
|
#/usr/bin/env python3
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import markdown
|
|
||||||
import xml.etree.ElementTree as etree
|
import xml.etree.ElementTree as etree
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from urllib.parse import urlparse
|
|
||||||
from urllib.parse import unquote as urlunquote
|
from urllib.parse import unquote as urlunquote
|
||||||
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
|
import markdown
|
||||||
from markdown.extensions import Extension
|
from markdown.extensions import Extension
|
||||||
from markdown.inlinepatterns import InlineProcessor, SimpleTagInlineProcessor
|
from markdown.inlinepatterns import InlineProcessor, SimpleTagInlineProcessor
|
||||||
from markdown.preprocessors import Preprocessor
|
from markdown.preprocessors import Preprocessor
|
||||||
|
|
||||||
from .dragonglass import Context
|
from .dragonglass import Context
|
||||||
|
|
||||||
PRIO_BASE = 10000 # priority base for our extensions
|
PRIO_BASE = 10000 # priority base for our extensions
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from urllib.parse import quote as urlquote
|
from urllib.parse import quote as urlquote
|
||||||
|
|
||||||
import markdown
|
import markdown
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user