Created
September 26, 2016 20:56
-
-
Save hmleal/b9872b761206fcb441fd0861e2d05d89 to your computer and use it in GitHub Desktop.
This file contains 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
import yaml | |
def yaml_loader(filepath): | |
with open(filepath, 'r') as f: | |
data = yaml.load(f) | |
return data | |
def yaml_dump(filepath, data): | |
with open(filepath, 'w+') as f: | |
yaml.dump(data, f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment