diff options
| author | Petr Vobornik <pvoborni@redhat.com> | 2014-01-24 17:49:23 +0100 |
|---|---|---|
| committer | Petr Vobornik <pvoborni@redhat.com> | 2014-01-24 19:34:07 +0100 |
| commit | f3613e761444a676c4e31f213e8274a1c2a4c088 (patch) | |
| tree | 526175a28d68609274c6abf294417835afcaa391 /ipsilon/util | |
| parent | 1574ab257ae2d19783c3e55ae660484ed88f58ca (diff) | |
Remove some pylint errors and warnings
Diffstat (limited to 'ipsilon/util')
| -rwxr-xr-x | ipsilon/util/data.py | 2 | ||||
| -rwxr-xr-x | ipsilon/util/page.py | 1 | ||||
| -rwxr-xr-x | ipsilon/util/plugin.py | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/ipsilon/util/data.py b/ipsilon/util/data.py index 3fda6d3..0edbe80 100755 --- a/ipsilon/util/data.py +++ b/ipsilon/util/data.py @@ -160,7 +160,7 @@ class Store(object): else: conf[row[1]] = row[2] - return (lpo, plco); + return (lpo, plco) def get_login_config(self): return self._load_login_config(self._admin_dbname) diff --git a/ipsilon/util/page.py b/ipsilon/util/page.py index 0a21ed4..5c843af 100755 --- a/ipsilon/util/page.py +++ b/ipsilon/util/page.py @@ -33,6 +33,7 @@ class Page(object): self.user = None def __call__(self, *args, **kwargs): + # pylint: disable=star-args self.user = user.UserSession().get_user() if len(args) > 0: diff --git a/ipsilon/util/plugin.py b/ipsilon/util/plugin.py index 0c8e466..017be2a 100755 --- a/ipsilon/util/plugin.py +++ b/ipsilon/util/plugin.py @@ -41,7 +41,7 @@ class Plugins(object): # mod = imp.load_compiled(name, file_name) else: return - except Exception, e: + except Exception, e: # pylint: disable=broad-except cherrypy.log.error('Failed to load "%s" module: [%s]' % (name, e)) return @@ -55,7 +55,7 @@ class Plugins(object): files = None try: files = os.listdir(path) - except Exception, e: + except Exception, e: # pylint: disable=broad-except cherrypy.log.error('No modules in %s: [%s]' % (path, e)) return |
