Switch portage.dep.strip_empty(...) to filter(None,...) to avoid deprecation warning and do essentially the same

This commit is contained in:
Bernd May 2015-05-17 21:57:36 +02:00 committed by Justin Findlay
parent 3df3b85090
commit 2851a5cf13

View file

@ -274,7 +274,7 @@ def append_to_package_conf(conf, atom='', flags=None, string='', overwrite=False
new_flags = list(flags)
else:
atom = string.strip().split()[0]
new_flags = portage.dep.strip_empty(string.strip().split(' '))[1:]
new_flags = filter(None,string.strip().split(' '))[1:]
if '/' not in atom:
atom = _p_to_cp(atom)
string = '{0} {1}'.format(atom, ' '.join(new_flags))