commit | c486b977932d41682616643cd2461df7fbaba8fc | [log] [tgz] |
---|---|---|
author | Nguyen Phuong An <AnNP@vn.fujitsu.com> | Mon Aug 29 18:15:30 2016 +0700 |
committer | Nguyen Phuong An <AnNP@vn.fujitsu.com> | Wed Sep 14 16:23:32 2016 +0700 |
tree | 1cb683c5bea51b6380220b03fe60b92d186615b9 | |
parent | 9ba39001aa32f03a0456dc7a44976d29ec3c5d49 [diff] |
Prevent use filter(lambda obj: test(obj), data) In Python3 [1], if we need filter on python3, replace filter(lambda obj: test(obj), data) with: [obj for obj in data if test(obj)]. This patch replaces filter function and introduces a hacking rule to prevent using filter in future. [1] https://wiki.openstack.org/wiki/Python3 Change-Id: I83d22108c02f8da007a7233e71a4a7fb833170ec