Suppress a pylint error about something that we are handling

This commit is contained in:
Jesse Mullan
2014-11-01 19:49:24 -07:00
parent 4ae3655025
commit a67d0683ca
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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