1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Thu, 20 Oct 2022 16:09:05 +0200
Subject: Fix deprecated yaml.load()
---
src/rosinstall_generator/dry_distro.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rosinstall_generator/dry_distro.py b/src/rosinstall_generator/dry_distro.py
index ba36410..1fda107 100644
--- a/src/rosinstall_generator/dry_distro.py
+++ b/src/rosinstall_generator/dry_distro.py
@@ -127,7 +127,7 @@ def _get_stack_info(distro, stack_name):
data = load_url(url)
except URLError as e:
raise RuntimeError("Could not fetch information for stack '%s' with version '%s': %s" % (stack_name, version, e))
- _stack_info[stack_name] = yaml.load(data)
+ _stack_info[stack_name] = yaml.safe_load(data)
return _stack_info[stack_name]
|