-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from OrBin/bugfix/boolean-triggers
Bugfix/boolean triggers
- Loading branch information
Showing
6 changed files
with
31 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
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,18 @@ | ||
""" | ||
This file is a dirty hack to handle ruamel_yaml import problem | ||
In certain distributions, the module name is ruamel_yaml, while in others it's ruamel.yaml. | ||
As you can easily understand, that made us very sad :( | ||
A fallback import wasn't enough to solve it since the same imports were done in 3 different files, | ||
so we decided to create this file, which is a *very* partial accessor to ruamel_yaml. | ||
""" | ||
|
||
try: | ||
from ruamel_yaml import YAML | ||
from ruamel_yaml.comments import CommentedMap | ||
except ImportError: | ||
from ruamel.yaml import YAML | ||
from ruamel.yaml.comments import CommentedMap | ||
|
||
|
||
YAML = YAML | ||
CommentedMap = CommentedMap # pylint: disable=invalid-name |
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
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