Implement yaml.safe_load() (#2876)

* Implement yaml.safe_load()

* yaml.safe_dump()
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-04-21 14:34:45 +02:00
1 parent c949fc86d1
commit f7bc685c2c
10 files changed
+23 -22

No files matched your search

+1 -1
View File
@@ -30,6 +30,6 @@ names: [ 'person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', '
# Print classes
# with open('data/coco.yaml') as f:
# d = yaml.load(f, Loader=yaml.FullLoader) # dict
# d = yaml.safe_load(f) # dict
# for i, x in enumerate(d['names']):
# print(i, x)