diff options
author | Anthon van der Neut <anthon@mnt.org> | 2019-01-22 22:24:56 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2019-01-22 22:24:56 +0100 |
commit | 51d26b878717cf00bee0b961f39e0f14a7e9cdab (patch) | |
tree | 7e1b0f4eed20f76c0a95fb7e9ddf096ef25f8cde /main.py | |
parent | 5028398ac1150a43f4c6eae39b8260ea9cc22a19 (diff) | |
download | ruamel.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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |