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 | |
|---|---|
|
|
| File size: 141 bytes | |
| Line | |
|---|---|
| 1 | """ |
| 2 | Ported to Python 3. |
| 3 | """ |
| 4 | |
| 5 | import yaml |
| 6 | |
| 7 | def safe_load(f): |
| 8 | return yaml.safe_load(f) |
| 9 | |
| 10 | def safe_dump(obj): |
| 11 | return yaml.safe_dump(obj) |
Note: See TracBrowser
for help on using the repository browser.
