You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by hw...@apache.org on 2010/08/04 06:14:01 UTC

svn commit: r982115 - /labs/mouse/guesser/binary.py

Author: hwright
Date: Wed Aug  4 04:14:01 2010
New Revision: 982115

URL: http://svn.apache.org/viewvc?rev=982115&view=rev
Log:
Do case-insensitive comparisons.

Modified:
    labs/mouse/guesser/binary.py

Modified: labs/mouse/guesser/binary.py
URL: http://svn.apache.org/viewvc/labs/mouse/guesser/binary.py?rev=982115&r1=982114&r2=982115&view=diff
==============================================================================
--- labs/mouse/guesser/binary.py (original)
+++ labs/mouse/guesser/binary.py Wed Aug  4 04:14:01 2010
@@ -58,13 +58,13 @@ def is_binary(item):
 
   # Now, manually look at file extensions
   (root, ext) = os.path.splitext(item.name)
-  if ext[1:] in _binary_exts:
+  if ext[1:].lower() in _binary_exts:
     return True
 
   # Special case: we still think is is binary if it contains an executable
   # extension in the filename, not just at the end
   for ext in _exec_exts:
-    if ('.' + ext + '.') in item.name:
+    if ('.' + ext + '.') in item.name.lower():
       return True
 
   # Time to attempt a brute-force divination



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org