Changeset 175
- Timestamp:
- 05/22/06 16:00:11 (7 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/lib/yaml/constructor.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib/yaml/constructor.py
r173 r175 239 239 def construct_yaml_float(self, node): 240 240 value = str(self.construct_scalar(node)) 241 value = value.replace('_', '') 241 value = value.replace('_', '').lower() 242 242 sign = +1 243 243 if value[0] == '-': … … 245 245 if value[0] in '+-': 246 246 value = value[1:] 247 if value .lower()== '.inf':247 if value == '.inf': 248 248 return sign*self.inf_value 249 elif value .lower()== '.nan':249 elif value == '.nan': 250 250 return self.nan_value 251 251 elif ':' in value:
Note: See TracChangeset
for help on using the changeset viewer.
