Index: /pyyaml/trunk/lib/yaml/constructor.py
===================================================================
--- /pyyaml/trunk/lib/yaml/constructor.py	(revision 173)
+++ /pyyaml/trunk/lib/yaml/constructor.py	(revision 175)
@@ -239,5 +239,5 @@
     def construct_yaml_float(self, node):
         value = str(self.construct_scalar(node))
-        value = value.replace('_', '')
+        value = value.replace('_', '').lower()
         sign = +1
         if value[0] == '-':
@@ -245,7 +245,7 @@
         if value[0] in '+-':
             value = value[1:]
-        if value.lower() == '.inf':
+        if value == '.inf':
             return sign*self.inf_value
-        elif value.lower() == '.nan':
+        elif value == '.nan':
             return self.nan_value
         elif ':' in value:
