summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index b0f847b..fec0295 100644
--- a/main.py
+++ b/main.py
@@ -41,7 +41,7 @@ enforce = object()
# YAML is an acronym, i.e. spoken: rhymes with "camel". And thus a
-# subset of abbreviations, which should all caps according to PEP8
+# subset of abbreviations, which should be all caps according to PEP8
class YAML(object):
def __init__(self, _kw=enforce, typ=None, pure=False, plug_ins=None):
@@ -607,6 +607,7 @@ def emit(events, stream=None, Dumper=Dumper,
if getvalue is not None:
return getvalue()
+
enc = None if PY3 else 'utf-8'