server/general: fix a few pylint warnings

This commit is contained in:
rr- 2016-05-10 11:55:36 +02:00
parent 57297df9e1
commit 3481c1072d
3 changed files with 5 additions and 1 deletions

View File

@ -14,3 +14,6 @@ disable=missing-docstring,no-self-use,too-few-public-methods,multiple-statements
[typecheck]
generated-members=add|add_all
[similarities]
min-similarity-lines=5

View File

@ -1,5 +1,6 @@
import re
# pylint: disable=too-many-return-statements
def get_mime_type(content):
if not content:
return 'application/octet-stream'