Avoid using built-in function name

Avoid using built-in function name. Here filter is a built-in
function name. As per python standard we should not use it.

Change-Id: I6a005ca55d42dd41f9ac0b482bee056a23671190
This commit is contained in:
dharmendra kushwaha 2016-03-16 22:30:54 +05:30
parent 8b0d413b1c
commit e87a330fa4
1 changed files with 2 additions and 2 deletions

View File

@ -72,6 +72,6 @@ def pipeline_factory(loader, global_conf, **local_conf):
filters = [loader.get_filter(n) for n in pipeline[:-1]]
app = loader.get_app(pipeline[-1])
filters.reverse()
for filter in filters:
app = filter(app)
for f in filters:
app = f(app)
return app