summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2022-02-12 09:52:13 +0100
committerAnthon van der Neut <anthon@mnt.org>2022-02-12 09:52:13 +0100
commita9fc2e5d353e5269ee4516945aafebcc8d75c165 (patch)
tree7010986d6eb5db7381e48d2214ea71747bb7a8f6 /main.py
parent4c1519d446f8d32b1ff34ab8435a32e87ba87b92 (diff)
downloadruamel.yaml-a9fc2e5d353e5269ee4516945aafebcc8d75c165.tar.gz
bug in YAML.compose(Path(...)))0.17.21
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index 8a90342..20bd8d3 100644
--- a/main.py
+++ b/main.py
@@ -367,7 +367,7 @@ class YAML:
if not hasattr(stream, 'read') and hasattr(stream, 'open'):
# pathlib.Path() instance
with stream.open('rb') as fp:
- return self.load(fp)
+ return self.compose(fp)
constructor, parser = self.get_constructor_parser(stream)
try:
return constructor.composer.get_single_node()