Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- class FilterModule(object):
- ''' Custom filters are loaded by FilterModule objects '''
- def filters(self):
- ''' Filter Module objects return a dict mapping filter names to '''
- return {
- 'parse_show_platform': self.parse_show_platform,
- }
- def parse_show_platform(self, data, delimeter=':', col=0, offset=0):
- i=0
- result=[]
- for l in data:
- if i < offset:
- i=i+1
- continue
- cols = l.split(delimeter)
- result.append(cols[col].strip())
- return(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement