Fix feed.items.append since pep8
The underscore naming convention was not yet applied in that functionmaster
parent
ee3b2590d0
commit
d877e856d3
|
@ -273,8 +273,8 @@ class FeedList(object):
|
||||||
return new
|
return new
|
||||||
|
|
||||||
for key in self.childClass.__dict__:
|
for key in self.childClass.__dict__:
|
||||||
if key[:3] == 'set':
|
if key.startswith('set_'):
|
||||||
attr = key[3:].lower()
|
attr = key[4:]
|
||||||
if hasattr(cousin, attr):
|
if hasattr(cousin, attr):
|
||||||
setattr(new, attr, getattr(cousin, attr))
|
setattr(new, attr, getattr(cousin, attr))
|
||||||
elif attr in cousin:
|
elif attr in cousin:
|
||||||
|
|
Loading…
Reference in New Issue