minor patch

This commit is contained in:
Miroslav Stampar 2011-08-16 06:22:04 +00:00
parent 262996fc5b
commit 600ef3eace
2 changed files with 4 additions and 1 deletions

View File

@ -553,6 +553,9 @@ Zhen Zhou <zhouzhenster@gmail.com>
abc abc <biedimc@gmx.net>
for reporting a minor bug
Alex m3zero@gmail.com
for reporting a minor bug
anonymous anonymous <tmp@2ch.so>
for reporting a couple of bugs

View File

@ -135,7 +135,7 @@ def checkCharEncoding(encoding):
# http://philip.html5.org/data/charsets-2.html
if encoding in translate:
encoding = translate[encoding]
elif encoding == 'null':
elif encoding in ('null', '{charset}'):
return None
# http://www.iana.org/assignments/character-sets