Commits

Kirill Simonov committed c9a66f6

Fixed #15 (pyyaml discards '-' sign on negative floats).
Thanks to alex_(a)_alexmole_(o)_co_(o)_uk for reporting the bug.

Comments (0)

Files changed (1)

lib/yaml/constructor.py

                 base *= 60
             return sign*value
         else:
-            return float(value)
+            return sign*float(value)
 
     def construct_yaml_binary(self, node):
         value = self.construct_scalar(node)