Ignore invalid pylint warnings (#211)

This commit is contained in:
Stein Magnus Jodal 2012-10-17 01:42:58 +02:00
parent 0c9452d9d3
commit 65b550eb44
5 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,6 @@
# pylint: disable = E0611,F0401
from distutils.version import StrictVersion
# pylint: enable = E0611,F0401
import logging
import optparse
import os

View File

@ -19,7 +19,9 @@ class AutoAudioMixer(gst.Bin):
gst.Bin.__init__(self)
mixer = self._find_mixer()
if mixer:
# pylint: disable=E1101
self.add(mixer)
# pylint: enable=E1101
logger.debug('AutoAudioMixer chose: %s', mixer.get_name())
else:
logger.debug('AutoAudioMixer did not find any usable mixers')

View File

@ -69,8 +69,8 @@ def load_protocol_modules():
The protocol modules must be imported to get them registered in
:attr:`request_handlers` and :attr:`mpd_commands`.
"""
# pylint: disable = W0611
# pylint: disable = W0612
from . import ( # noqa
audio_output, command_list, connection, current_playlist, empty,
music_db, playback, reflection, status, stickers, stored_playlists)
# pylint: enable = W0611
# pylint: enable = W0612

View File

@ -1,7 +1,9 @@
import logging
import os
import re
# pylint: disable = W0402
import string
# pylint: enable = W0402
import sys
import urllib

View File

@ -12,9 +12,11 @@ def get_version():
def get_git_version():
process = Popen(['git', 'describe'], stdout=PIPE, stderr=PIPE)
# pylint: disable = E1101
if process.wait() != 0:
raise EnvironmentError('Execution of "git describe" failed')
version = process.stdout.read().strip()
# pylint: enable = E1101
if version.startswith('v'):
version = version[1:]
return version