From a67d0683cac96b5417c8690cfc100f8e3cece334 Mon Sep 17 00:00:00 2001 From: Jesse Mullan Date: Sat, 1 Nov 2014 19:49:24 -0700 Subject: [PATCH] Suppress a pylint error about something that we are handling --- headphones/mb.py | 3 +++ headphones/webserve.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/headphones/mb.py b/headphones/mb.py index a688624b..fc0bc8d0 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -22,7 +22,10 @@ import headphones import musicbrainzngs try: + # pylint:disable=E0611 + # ignore this error because we are catching the ImportError from collections import OrderedDict + # pylint:enable=E0611 except ImportError: # Python 2.6.x fallback, from libs from ordereddict import OrderedDict diff --git a/headphones/webserve.py b/headphones/webserve.py index b1c0d950..8fd4b64d 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -32,7 +32,10 @@ import threading import headphones try: + # pylint:disable=E0611 + # ignore this error because we are catching the ImportError from collections import OrderedDict + # pylint:enable=E0611 except ImportError: # Python 2.6.x fallback, from libs from ordereddict import OrderedDict