diff options
author | Anthon van der Neut <anthon@mnt.org> | 2017-08-07 09:43:06 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2017-08-07 09:43:06 +0200 |
commit | 56035ae630d159ce4d4f32264d3f992a24d6014f (patch) | |
tree | a8a01711504430b1f196e6ac9aafd07fe346a2c4 /emitter.py | |
parent | be4502b57ac2203e3ad075b18a5a94f87dfcf8dc (diff) | |
download | ruamel.yaml-56035ae630d159ce4d4f32264d3f992a24d6014f.tar.gz |
python 2.7 changes float round-trippign
Diffstat (limited to 'emitter.py')
-rw-r--r-- | emitter.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1329,7 +1329,11 @@ class Emitter(object): self.column += len(data) if self.encoding: data = data.encode(self.encoding) - self.stream.write(data) + try: + self.stream.write(data) + except: + print(repr(data)) + raise start = end if ch is not None: spaces = (ch == u' ') |