summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2019-01-22 22:24:56 +0100
committerAnthon van der Neut <anthon@mnt.org>2019-01-22 22:24:56 +0100
commit51d26b878717cf00bee0b961f39e0f14a7e9cdab (patch)
tree7e1b0f4eed20f76c0a95fb7e9ddf096ef25f8cde /main.py
parent5028398ac1150a43f4c6eae39b8260ea9cc22a19 (diff)
downloadruamel.yaml-51d26b878717cf00bee0b961f39e0f14a7e9cdab.tar.gz
fix indexing error on empty list for merge-key position0.15.87
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 f06c52e..184c7ad 100644
--- a/main.py
+++ b/main.py
@@ -324,7 +324,7 @@ class YAML(object):
"""
if not hasattr(stream, 'read') and hasattr(stream, 'open'):
# pathlib.Path() instance
- with stream.open('r') as fp: # type: ignore
+ with stream.open('rb') as fp: # type: ignore
return self.load(fp)
constructor, parser = self.get_constructor_parser(stream)
try: