Source

pyyaml / tests / test_constructor.py

Diff from to

File tests/test_constructor.py

         return repr(data.utctimetuple())
     elif isinstance(data, unicode):
         return data.encode('utf-8')
+    elif isinstance(data, float) and data != data:
+        return '?'
     else:
         return str(data)