1. Tom Limoncelli
  2. pyyaml

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.

  • Participants
  • Parent commits 3c56d2e
  • Branches default

Comments (0)

Files changed (1)

File lib/yaml/constructor.py

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