diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-08-13 13:16:06 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-08-13 13:16:06 +0200 |
commit | a29127076c536d0009b2556a4a2081e8cad83032 (patch) | |
tree | 7c97a6ca1f75bfd76c66ed4dd0475672a93d3198 /representer.py | |
parent | 56a22f859d4fa1a0be6a6335fb7e9232ea9e9239 (diff) | |
download | ruamel.yaml-a29127076c536d0009b2556a4a2081e8cad83032.tar.gz |
fix issue #62: not allowing : or ? in flow style plain scalar0.15.27
also fix list withing list comment dropping, as it happened to occur in the example
Diffstat (limited to 'representer.py')
-rw-r--r-- | representer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/representer.py b/representer.py index 7468060..5380813 100644 --- a/representer.py +++ b/representer.py @@ -309,7 +309,7 @@ class SafeRepresenter(BaseRepresenter): value = u'-.inf' else: value = to_unicode(repr(data)).lower() - if self.serializer.use_version == (1, 1): # type: ignore + if self.serializer.use_version == (1, 1): if u'.' not in value and u'e' in value: # Note that in some cases `repr(data)` represents a float number # without the decimal parts. For instance: |