summaryrefslogtreecommitdiff
path: root/composer.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2016-07-06 23:31:57 +0200
committerAnthon van der Neut <anthon@mnt.org>2016-07-06 23:31:57 +0200
commita990e4568c7f341cc76f5ab572a3089bb1065da4 (patch)
tree437e9b9e007dddc73510e805a554e139a84bef50 /composer.py
parentbc5bd304c273b3c0067c2c8840efedd2bc4fc327 (diff)
downloadruamel.yaml-a990e4568c7f341cc76f5ab572a3089bb1065da4.tar.gz
added optional preservation of quotes around scalars
Diffstat (limited to 'composer.py')
-rw-r--r--composer.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/composer.py b/composer.py
index cf2508e..e193fdb 100644
--- a/composer.py
+++ b/composer.py
@@ -3,19 +3,24 @@
from __future__ import absolute_import
from __future__ import print_function
-__all__ = ['Composer', 'ComposerError']
try:
from .error import MarkedYAMLError
- from .events import * # NOQA
- from .nodes import * # NOQA
from .compat import utf8
except (ImportError, ValueError): # for Jython
from ruamel.yaml.error import MarkedYAMLError
- from ruamel.yaml.events import * # NOQA
- from ruamel.yaml.nodes import * # NOQA
from ruamel.yaml.compat import utf8
+from ruamel.yaml.events import (
+ StreamStartEvent, StreamEndEvent, MappingStartEvent, MappingEndEvent,
+ SequenceStartEvent, SequenceEndEvent, AliasEvent, ScalarEvent,
+)
+from ruamel.yaml.nodes import (
+ MappingNode, ScalarNode, SequenceNode,
+)
+
+__all__ = ['Composer', 'ComposerError']
+
class ComposerError(MarkedYAMLError):
pass