summaryrefslogtreecommitdiff
path: root/emitter.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-08-07 09:43:06 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-08-07 09:43:06 +0200
commit56035ae630d159ce4d4f32264d3f992a24d6014f (patch)
treea8a01711504430b1f196e6ac9aafd07fe346a2c4 /emitter.py
parentbe4502b57ac2203e3ad075b18a5a94f87dfcf8dc (diff)
downloadruamel.yaml-56035ae630d159ce4d4f32264d3f992a24d6014f.tar.gz
python 2.7 changes float round-trippign
Diffstat (limited to 'emitter.py')
-rw-r--r--emitter.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/emitter.py b/emitter.py
index 617d439..a1b703d 100644
--- a/emitter.py
+++ b/emitter.py
@@ -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' ')