Rename Attr filter to Field

This commit is contained in:
Florent 2014-03-19 16:20:24 +01:00
commit ae3471fdf7
4 changed files with 8 additions and 8 deletions

View file

@ -171,12 +171,12 @@ class Link(Filter):
return el[0].attrib.get('href', '')
class Attr(_Filter):
class Field(_Filter):
"""
Get the attribute of object.
"""
def __init__(self, name):
super(Attr, self).__init__()
super(Field, self).__init__()
self.name = name
def __call__(self, item):