Created
January 17, 2022 11:42
-
-
Save Merwanski/a43f4a291b7e858085bce3c623968292 to your computer and use it in GitHub Desktop.
read yaml file content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. | |
# Please read https://msg.pyyaml.org/load for full details. | |
import yaml | |
f = open(filaname_path, 'r') | |
yaml.load(f, Loader=yaml.FullLoader) | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment