]> Devi Nivas Git - chevron.git/commitdiff
Excluding yaml parsing lines from coverage since pyyaml is not a dependency
authorBinokkio <binokkio@b.nana.technology>
Sun, 27 Dec 2020 10:24:17 +0000 (11:24 +0100)
committerBinokkio <binokkio@b.nana.technology>
Sun, 27 Dec 2020 10:24:17 +0000 (11:24 +0100)
chevron/main.py

index 5efe763f5bb9894d650b040f84f469d0d3f58d30..d941ff42e287165c75858f906e884473d4c7efea 100755 (executable)
@@ -33,8 +33,8 @@ def main(template, data={}, **kwargs):
 def _load_data(file, yaml_loader):
     try:
         import yaml
-        loader = getattr(yaml, yaml_loader)
-        return yaml.load(file, Loader=loader)
+        loader = getattr(yaml, yaml_loader)  # not tested
+        return yaml.load(file, Loader=loader)  # not tested
     except ImportError:
         import json
         return json.load(file)