Replaced 'not foo == None' with 'foo is not None' in ascii sniffing too
authorJoar Wandborg <git@wandborg.com>
Thu, 8 Mar 2012 22:49:41 +0000 (23:49 +0100)
committerJoar Wandborg <git@wandborg.com>
Thu, 8 Mar 2012 22:49:41 +0000 (23:49 +0100)
mediagoblin/media_types/ascii/processing.py

index 75184c1fffc73bdbc6edf20f2596074cd035b7f6..846c39fbb8675a992110628c81f3a6d7b6795a07 100644 (file)
@@ -27,7 +27,7 @@ _log = logging.getLogger(__name__)
 SUPPORTED_EXTENSIONS = ['txt', 'asc', 'nfo']
 
 def sniff_handler(media_file, **kw):
-    if not kw.get('media') == None:
+    if kw.get('media') is not None:
         name, ext = os.path.splitext(kw['media'].filename)
         clean_ext = ext[1:].lower()