summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbionade242019-09-05 11:11:56 +0200
committerbionade242019-09-05 11:11:56 +0200
commit2c612a0df07a7846f8961eac916b41767e3ab92a (patch)
treeb5f795ed8afae9e138fd9b344d46d0937a7ab125
parentd4842cee80c735f673330e2c0c24d408a95f6a3a (diff)
downloadaur-2c612a0df07a7846f8961eac916b41767e3ab92a.tar.gz
Added yaml.Loader type for pyyaml
-rwxr-xr-xcreate_pkgbuild.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/create_pkgbuild.py b/create_pkgbuild.py
index 0458c0a3312d..276067768cc1 100755
--- a/create_pkgbuild.py
+++ b/create_pkgbuild.py
@@ -192,7 +192,7 @@ class PackageBase(object):
dependency_map = {}
for rosdep_url in rosdep_urls:
stream = http.request('GET', rosdep_url).data
- rosdep_file = yaml.load(stream)
+ rosdep_file = yaml.load(stream, Loader=yaml.BaseLoader)
for package_name, distrib in rosdep_file.items():
if 'arch' in distrib:
if 'pacman' in distrib["arch"]:
@@ -427,7 +427,7 @@ class DistroDescription(object):
def __init__(self, name, url, python_version):
stream = http.request('GET', url).data
self.name = name
- self._distro = yaml.load(stream)
+ self._distro = yaml.load(stream, Loader=yaml.BaseLoader)
self._package_cache = {}
self.python_version = python_version
if 'metapackages' in self._distro['repositories'].keys():