source: trunk/src/allmydata/util/yamlutil.py

Last change on this file was 1cfe843d, checked in by Alexandre Detiste <alexandre.detiste@…>, at 2024-02-22T23:40:25Z

more python2 removal

  • Property mode set to 100644
File size: 141 bytes
Line 
1"""
2Ported to Python 3.
3"""
4
5import yaml
6
7def safe_load(f):
8    return yaml.safe_load(f)
9
10def safe_dump(obj):
11    return yaml.safe_dump(obj)
Note: See TracBrowser for help on using the repository browser.