[extensions-web] Correct binary files



commit 9d77848d016db94000801b391beb0eff11a3f1a8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Nov 19 16:17:32 2011 -0500

    Correct binary files

 sweettooth/review/views.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index eb4bbbd..f71adc1 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -44,7 +44,8 @@ def get_filelist(zipfile):
             # guessing this is the most reliable way to do it.
             continue
 
-        if name in BINARY_TYPES:
+        base, extension = os.path.splitext(filename)
+        if extension in BINARY_TYPES:
             continue
 
         yield name



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]