summaryrefslogtreecommitdiff
path: root/representer.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-08-13 13:16:06 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-08-13 13:16:06 +0200
commita29127076c536d0009b2556a4a2081e8cad83032 (patch)
tree7c97a6ca1f75bfd76c66ed4dd0475672a93d3198 /representer.py
parent56a22f859d4fa1a0be6a6335fb7e9232ea9e9239 (diff)
downloadruamel.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.py2
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: