summaryrefslogtreecommitdiff
path: root/gr-utils/python
diff options
context:
space:
mode:
authorAndrej Rode <mail@andrejro.de>2019-03-02 19:59:00 +0100
committerMarcus Müller <marcus.mueller@ettus.com>2019-03-04 22:30:48 +0100
commitb5023acd6b511bd438d431b87d93847fba6b9c76 (patch)
tree950b6d19d0597557dc8d6260df423dcedd032817 /gr-utils/python
parentc04188d7f4e7c7673e6ecc839a6455a6f6b20453 (diff)
modtool: fallback to slow yaml if libyaml support is not available
Diffstat (limited to 'gr-utils/python')
-rw-r--r--gr-utils/python/modtool/tools/grc_yaml_generator.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/tools/grc_yaml_generator.py b/gr-utils/python/modtool/tools/grc_yaml_generator.py
index ce61f46069..5bb0b64047 100644
--- a/gr-utils/python/modtool/tools/grc_yaml_generator.py
+++ b/gr-utils/python/modtool/tools/grc_yaml_generator.py
@@ -27,7 +27,10 @@ from __future__ import unicode_literals
from collections import OrderedDict
import yaml
-from yaml import CLoader as Loader, CDumper as Dumper
+try:
+ from yaml import CLoader as Loader, CDumper as Dumper
+except:
+ from yaml import Loader, Dumper
from .util_functions import is_number