mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 02:15:05 -04:00
Use yaml safe_load
This commit is contained in:
parent
01e6b405be
commit
3677548a82
7 changed files with 11 additions and 11 deletions
|
@ -43,7 +43,7 @@ class ConfigLoadingTestCase(unittest.TestCase):
|
|||
self.generate_config()
|
||||
|
||||
with open(self.file, "r") as f:
|
||||
raw = yaml.load(f)
|
||||
raw = yaml.safe_load(f)
|
||||
self.assertIn("macaroon_secret_key", raw)
|
||||
|
||||
config = HomeServerConfig.load_config("", ["-c", self.file])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue