diff options
Diffstat (limited to 'third_party/python/taskcluster_taskgraph/taskgraph/util/yaml.py')
-rw-r--r-- | third_party/python/taskcluster_taskgraph/taskgraph/util/yaml.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/third_party/python/taskcluster_taskgraph/taskgraph/util/yaml.py b/third_party/python/taskcluster_taskgraph/taskgraph/util/yaml.py index 141c7a16d3..a733521527 100644 --- a/third_party/python/taskcluster_taskgraph/taskgraph/util/yaml.py +++ b/third_party/python/taskcluster_taskgraph/taskgraph/util/yaml.py @@ -5,7 +5,10 @@ import os -from yaml.loader import SafeLoader +try: + from yaml import CSafeLoader as SafeLoader +except ImportError: + from yaml import SafeLoader class UnicodeLoader(SafeLoader): |