mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-21 00:14:02 +01:00
Suppress a pylint error about something that we are handling
This commit is contained in:
@@ -22,7 +22,10 @@ import headphones
|
|||||||
import musicbrainzngs
|
import musicbrainzngs
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# pylint:disable=E0611
|
||||||
|
# ignore this error because we are catching the ImportError
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
# pylint:enable=E0611
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Python 2.6.x fallback, from libs
|
# Python 2.6.x fallback, from libs
|
||||||
from ordereddict import OrderedDict
|
from ordereddict import OrderedDict
|
||||||
|
|||||||
@@ -32,7 +32,10 @@ import threading
|
|||||||
import headphones
|
import headphones
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# pylint:disable=E0611
|
||||||
|
# ignore this error because we are catching the ImportError
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
# pylint:enable=E0611
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Python 2.6.x fallback, from libs
|
# Python 2.6.x fallback, from libs
|
||||||
from ordereddict import OrderedDict
|
from ordereddict import OrderedDict
|
||||||
|
|||||||
Reference in New Issue
Block a user