lowercase extension before comparing
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 14 Sep 2011 00:00:27 +0000 (20:00 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 14 Sep 2011 00:00:27 +0000 (20:00 -0400)
sfa/trust/trustedroots.py

index fac2da4..a505aea 100644 (file)
@@ -39,5 +39,5 @@ class TrustedRoots:
 
     def has_supported_extension (self,path):
         (_,ext)=os.path.splitext(path)
-        ext=ext.replace('.','')
+        ext=ext.replace('.','').lower()
         return ext in TrustedRoots.supported_extensions