Skip to content

Commit

Permalink
Turn parser.py into a module
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Nov 28, 2023
1 parent b54eca3 commit 0689f35
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions bikeshed/h/parser/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from .parser import (
Comment,
Doctype,
EndTag,
Failure,
ParseConfig,
ParseFailure,
ParserNode,
RawElement,
RawText,
Result,
SafeText,
SelfClosedTag,
StartTag,
Stream,
Text,
initialDocumentParse,
linesFromNodes,
nodesFromHtml,
nodesFromStream,
parseLines,
parseText,
parseTitle,
strFromNodes,
)
4 changes: 2 additions & 2 deletions bikeshed/h/parser.py → bikeshed/h/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from abc import ABCMeta, abstractmethod
from dataclasses import dataclass, field

from .. import constants, t
from .. import messages as m
from ... import constants, t
from ... import messages as m


def test() -> None:
Expand Down

0 comments on commit 0689f35

Please sign in to comment.