-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When warn is set to a Callable, it is called with a ChevronError instead of writing to stderr
- Loading branch information
1 parent
90413a2
commit 9a5130e
Showing
6 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from .chevron.main import main, cli_main | ||
from .chevron.renderer import render | ||
from .chevron.tokenizer import ChevronError | ||
from .chevron.error import ChevronError, ChevronKeyError | ||
|
||
__all__ = ['main', 'render', 'cli_main', 'ChevronError'] | ||
__all__ = ['main', 'render', 'cli_main', 'ChevronError', 'ChevronKeyError'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from .main import main, cli_main | ||
from .renderer import render | ||
from .tokenizer import ChevronError | ||
from .error import ChevronError, ChevronKeyError | ||
|
||
__all__ = ['main', 'render', 'cli_main', 'ChevronError'] | ||
__all__ = ['main', 'render', 'cli_main', 'ChevronError', 'ChevronKeyError'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class ChevronError(SyntaxError): | ||
pass | ||
|
||
class ChevronKeyError(ChevronError): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters