From 364deea051531274865c9152c003a5463618af22 Mon Sep 17 00:00:00 2001 From: Jesse Mullan Date: Sat, 1 Nov 2014 17:02:56 -0700 Subject: [PATCH] Fix pylint complaints --- headphones/config.py | 3 ++- headphones/cuesplit.py | 2 +- headphones/webserve.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/headphones/config.py b/headphones/config.py index 079e2e1d..44d486aa 100644 --- a/headphones/config.py +++ b/headphones/config.py @@ -233,7 +233,8 @@ _CONFIG_DEFINITIONS = { 'XLDPROFILE': (str, 'General', '') } - +# pylint:disable=R0902 +# it might be nice to refactor for fewer instance variables class Config(object): """ Wraps access to particular values in a config file """ diff --git a/headphones/cuesplit.py b/headphones/cuesplit.py index 01ed54f8..0712bdaa 100755 --- a/headphones/cuesplit.py +++ b/headphones/cuesplit.py @@ -388,7 +388,7 @@ class CueFile(File): except: raise ValueError('Cant encode CUE Sheet.') - if self.content[0] == '\ufeff': + if self.content[0] == u'\ufeff': self.content = self.content[1:] header = header_parser() diff --git a/headphones/webserve.py b/headphones/webserve.py index 6605661c..0702ec08 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -1378,7 +1378,7 @@ class WebInterface(object): def osxnotifyregister(self, app): cherrypy.response.headers['Cache-Control'] = "max-age=0,no-cache,no-store" - from lib.osxnotify import registerapp as osxnotify + from osxnotify import registerapp as osxnotify result, msg = osxnotify.registerapp(app) if result: osx_notify = notifiers.OSX_NOTIFY()