From: Joar Wandborg Date: Thu, 8 Mar 2012 22:49:41 +0000 (+0100) Subject: Replaced 'not foo == None' with 'foo is not None' in ascii sniffing too X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9743ce886ab3655662afaa0ef7b08791a65e37da;p=mediagoblin.git Replaced 'not foo == None' with 'foo is not None' in ascii sniffing too --- 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()