From: Arun Babu Neelicattu <abn(a)redhat.com>
---
bugzilla/base.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bugzilla/base.py b/bugzilla/base.py
index a4e30c1..168c8ad 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -30,10 +30,15 @@ mimemagic = None
def _detect_filetype(fname):
+ # pylint: disable=E1103
+ # E1103: Instance of 'bool' has no '%s' member
+ # pylint confuses mimemagic to be of type 'bool'
global mimemagic
if mimemagic is None:
try:
+ # pylint: disable=F0401
+ # F0401: Unable to import 'magic' (import-error)
import magic
mimemagic = magic.open(magic.MAGIC_MIME_TYPE)
mimemagic.load()
--
1.8.3.1