commit | 935f2cca8e9d05fdd1b6d3cb2149a84dadabfea1 | [log] [tgz] |
---|---|---|
author | Sirushti Murugesan <sirushti.murugesan@hp.com> | Tue Jul 12 19:48:24 2016 +0530 |
committer | Sirushti Murugesan <sirushti.murugesan@hp.com> | Tue Jul 19 17:13:29 2016 +0530 |
tree | 7f9863aff7633e1c7d9530c60a98011385a2ed4e | |
parent | 1c984e4034a0058dbb99b780799de735a06e46e3 [diff] |
py3: Replace map/filter with a list comprehension The map and filter functions returns a list in python 2 but an iterator in python 3. However, there are instances where the code assumes the returned value from map/value to be a list. Substitute these functions to its list comprehension equivalent expression to enable compatibility with Python 3. Change-Id: Iccaa3d1f4b009f59ea575c955ee4015e964f2318