From 38ec695e77c185bd48f1c559bec68fdf63a95f6d Mon Sep 17 00:00:00 2001
From: Jeremy Stanley <fungi@yuggoth.org>
Date: Thu, 30 Dec 2021 12:42:26 +0000
Subject: [PATCH] Use yaml.safe_load() in accessbot

Newer versions of PyYAML have removed the ability to rely on
yaml.load() without passing an explicit Loader class. Instead,
switch to its safe_load() function which has an implicit one. The
same thing was done to our check_irc_access.py script in
I72776774eabd4e397ee5e8bdd58b3632be8fd3a1 but we never updated
accessbot similarly.

Change-Id: I32370e35c908acc3b75326a8ac5cadc25ef0760f
---
 docker/accessbot/accessbot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/accessbot/accessbot.py b/docker/accessbot/accessbot.py
index 38edc16ff2..af1bfe7f83 100755
--- a/docker/accessbot/accessbot.py
+++ b/docker/accessbot/accessbot.py
@@ -230,7 +230,7 @@ def main():
     config = configparser.ConfigParser()
     config.read(args.config)
 
-    channels = yaml.load(open(args.channels))
+    channels = yaml.safe_load(open(args.channels))
 
     a = SetAccess(channels, args.noop,
                   config.get('ircbot', 'nick'),