express filter as a listcomp

This commit is contained in:
Benjamin Peterson 2010-11-24 19:18:42 -06:00
parent ab08cb2176
commit b28438171b
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ class FuncargRequest:
self._pyfuncitem = pyfuncitem
if hasattr(pyfuncitem, '_requestparam'):
self.param = pyfuncitem._requestparam
extra = filter(None, [self.module, self.instance])
extra = [obj for obj in (self.module, self.instance) if obj]
self._plugins = pyfuncitem.getplugins() + extra
self._funcargs = self._pyfuncitem.funcargs.copy()
self._name2factory = {}