summaryrefslogtreecommitdiffstats
path: root/admin/netdata/patches/004-patch-collectors_python.d.plugin_python__modules_bases_loaders.py.patch
blob: 6a686df7769c1cde21d180b6d6b25659bd80604b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/collectors/python.d.plugin/python_modules/bases/loaders.py
+++ b/collectors/python.d.plugin/python_modules/bases/loaders.py
@@ -10,9 +10,9 @@ PY_VERSION = version_info[:2]
 
 try:
     if PY_VERSION > (3, 1):
-        from pyyaml3 import SafeLoader as YamlSafeLoader
+        from yaml import SafeLoader as YamlSafeLoader
     else:
-        from pyyaml2 import SafeLoader as YamlSafeLoader
+        from yaml import SafeLoader as YamlSafeLoader
 except ImportError:
     from yaml import SafeLoader as YamlSafeLoader