From 9743ce886ab3655662afaa0ef7b08791a65e37da Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Thu, 8 Mar 2012 23:49:41 +0100 Subject: [PATCH] Replaced 'not foo == None' with 'foo is not None' in ascii sniffing too --- mediagoblin/media_types/ascii/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/media_types/ascii/processing.py b/mediagoblin/media_types/ascii/processing.py index 75184c1f..846c39fb 100644 --- a/mediagoblin/media_types/ascii/processing.py +++ b/mediagoblin/media_types/ascii/processing.py @@ -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() -- 2.25.1