projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e200735
)
Replaced 'not foo == None' with 'foo is not None' in ascii sniffing too
author
Joar Wandborg
<git@wandborg.com>
Thu, 8 Mar 2012 22:49:41 +0000
(23:49 +0100)
committer
Joar Wandborg
<git@wandborg.com>
Thu, 8 Mar 2012 22:49:41 +0000
(23:49 +0100)
mediagoblin/media_types/ascii/processing.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/media_types/ascii/processing.py
b/mediagoblin/media_types/ascii/processing.py
index 75184c1fffc73bdbc6edf20f2596074cd035b7f6..846c39fbb8675a992110628c81f3a6d7b6795a07 100644
(file)
--- 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()