Skip to content
Extraits de code Groupes Projets
Valider 522e6046 rédigé par François De Keersmaeker's avatar François De Keersmaeker
Parcourir les fichiers

v0.1.0

parent a0fa498d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -8,7 +8,7 @@ import yaml
import collections.abc
# Import IgnoreLoader
from IgnoreLoader import IgnoreLoader
from .IgnoreLoader import IgnoreLoader
class IncludeLoader(yaml.SafeLoader):
......
......@@ -2,10 +2,11 @@
Initialization script for package `pyyaml_loaders`.
"""
import yaml
from IncludeLoader import IncludeLoader, construct_include
from IgnoreLoader import IgnoreLoader, construct_ignore
from .IgnoreLoader import IgnoreLoader
from .IncludeLoader import IncludeLoader
# Add custom constructors
yaml.add_constructor("!include", construct_include, IncludeLoader)
yaml.add_multi_constructor("!", construct_ignore, IgnoreLoader)
# Expose custom constructors
__all__ = [
"IgnoreLoader",
"IncludeLoader"
]
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter