From 0fdfdafdc4206599a083ad989906df3bef69f187 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Mon, 26 Dec 2016 14:10:03 +0100 Subject: [PATCH] More pylint-ing-fu. --- Makefile | 2 +- bonobo/util/__init__.py | 2 +- bonobo/util/lifecycle.py | 6 +++--- setup.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 42f71a6..23eeb7e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # This file has been auto-generated. # All changes will be lost, see Projectfile. # -# Updated at 2016-12-26 11:52:20.154236 +# Updated at 2016-12-26 14:09:09.609408 PYTHON ?= $(shell which python) PYTHON_BASENAME ?= $(shell basename $(PYTHON)) diff --git a/bonobo/util/__init__.py b/bonobo/util/__init__.py index d75720c..5de330f 100644 --- a/bonobo/util/__init__.py +++ b/bonobo/util/__init__.py @@ -40,5 +40,5 @@ def tee(f): log = tee(pprint.pprint) -def noop(*args, **kwargs): +def noop(*args, **kwargs): # pylint: disable=unused-argument pass diff --git a/bonobo/util/lifecycle.py b/bonobo/util/lifecycle.py index 924543b..0080149 100644 --- a/bonobo/util/lifecycle.py +++ b/bonobo/util/lifecycle.py @@ -25,6 +25,6 @@ get_initializer, set_initializer = _create_lifecycle_functions('initializer', 'i get_finalizer, set_finalizer = _create_lifecycle_functions('finalizer', 'finalize') -def with_context(f): - f._with_context = True - return f +def with_context(func): + func._with_context = True + return func diff --git a/setup.py b/setup.py index f523a37..29cde2c 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def read(filename, flt=None): try: version = read('version.txt') -except: +except: # pylint: disable=bare-except version = 'dev' setup(