We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1dabab commit c8d6a7fCopy full SHA for c8d6a7f
pyproject.toml
@@ -58,5 +58,6 @@ exclude = [ # TODO fix errors in these files
58
"src/taskgraph/util/taskcluster.py",
59
"src/taskgraph/util/vcs.py",
60
"src/taskgraph/util/workertypes.py",
61
+ "src/taskgraph/util/yaml.py",
62
]
63
reportIncompatibleMethodOverride = false
src/taskgraph/util/yaml.py
@@ -4,8 +4,12 @@
4
5
6
import os
7
+import typing
8
-from yaml.loader import SafeLoader
9
+try:
10
+ from yaml import CSafeLoader as SafeLoader
11
+except ImportError:
12
+ from yaml import SafeLoader
13
14
15
class UnicodeLoader(SafeLoader):
0 commit comments