Changeset 170


Ignore:
Timestamp:
05/21/06 03:26:05 (9 years ago)
Author:
xi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/lib/yaml/constructor.py

    r168 r170  
    259259            return sign*value 
    260260        else: 
    261             return float(value) 
     261            return sign*float(value) 
    262262 
    263263    def construct_yaml_binary(self, node): 
Note: See TracChangeset for help on using the changeset viewer.