summaryrefslogtreecommitdiff
path: root/emitter.py
diff options
context:
space:
mode:
Diffstat (limited to 'emitter.py')
-rw-r--r--emitter.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/emitter.py b/emitter.py
index b754bc0..ac88dc6 100644
--- a/emitter.py
+++ b/emitter.py
@@ -10,16 +10,11 @@ from __future__ import print_function
# sequence ::= SEQUENCE-START node* SEQUENCE-END
# mapping ::= MAPPING-START (node node)* MAPPING-END
-__all__ = ['Emitter', 'EmitterError']
+from ruamel.yaml.error import YAMLError
+from ruamel.yaml.events import * # NOQA
+from ruamel.yaml.compat import utf8, text_type, PY2, nprint, dbg, DBG_EVENT
-try:
- from .error import YAMLError
- from .events import * # NOQA
- from .compat import utf8, text_type, PY2, nprint, dbg, DBG_EVENT
-except (ImportError, ValueError): # for Jython
- from ruamel.yaml.error import YAMLError
- from ruamel.yaml.events import * # NOQA
- from ruamel.yaml.compat import utf8, text_type, PY2, nprint, dbg, DBG_EVENT
+__all__ = ['Emitter', 'EmitterError']
class EmitterError(YAMLError):