You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
526 B

  1. --- a/collectors/python.d.plugin/python_modules/bases/loaders.py
  2. +++ b/collectors/python.d.plugin/python_modules/bases/loaders.py
  3. @@ -10,9 +10,9 @@ PY_VERSION = version_info[:2]
  4. try:
  5. if PY_VERSION > (3, 1):
  6. - from pyyaml3 import SafeLoader as YamlSafeLoader
  7. + from yaml import SafeLoader as YamlSafeLoader
  8. else:
  9. - from pyyaml2 import SafeLoader as YamlSafeLoader
  10. + from yaml import SafeLoader as YamlSafeLoader
  11. except ImportError:
  12. from yaml import SafeLoader as YamlSafeLoader