summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
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()