I have a function, that needs to be python 2.6 conform:
def find(entity, **kwargs):
return instance.search(
set(),
{'search': '{0}="{1}"'.format(key, kwargs[key]) for key in kwargs}
)
However a python 2.6 sanity checks fails at character position 59, which is the "for" from the loop. Are inline loops not ok in python 2.6?