Skip to content

Instantly share code, notes, and snippets.

@Merwanski
Created January 17, 2022 11:42
Show Gist options
  • Save Merwanski/a43f4a291b7e858085bce3c623968292 to your computer and use it in GitHub Desktop.
Save Merwanski/a43f4a291b7e858085bce3c623968292 to your computer and use it in GitHub Desktop.
read yaml file content
# 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