summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2019-08-15 22:37:48 +0200
committerAnthon van der Neut <anthon@mnt.org>2019-08-15 22:37:48 +0200
commit909171f93bbad505d35f2856e0105f173858ea5f (patch)
tree2f60cc5be35af933c2c3267694e0a712cf29578b /util.py
parent1c628953c71f2e2f0cd01d643ca239e23c2e15cc (diff)
downloadruamel.yaml-909171f93bbad505d35f2856e0105f173858ea5f.tar.gz
mypy, split contruct_object0.16.3
fixes issue #306 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'util.py')
-rw-r--r--util.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/util.py b/util.py
index 2412888..3eb7d76 100644
--- a/util.py
+++ b/util.py
@@ -77,9 +77,10 @@ def load_yaml_guess_indent(stream, **kw):
return idx
if isinstance(stream, text_type):
- yaml_str = stream
+ yaml_str = stream # type: Any
elif isinstance(stream, binary_type):
- yaml_str = stream.decode('utf-8') # most likely, but the Reader checks BOM for this
+ # most likely, but the Reader checks BOM for this
+ yaml_str = stream.decode('utf-8')
else:
yaml_str = stream.read()
map_indent = None