remove unused LoraxTemplate.getdata()
This commit is contained in:
parent
6ad14ea42b
commit
2096ebc551
@ -58,11 +58,3 @@ class LoraxTemplate(object):
|
||||
|
||||
self.lines = lines
|
||||
return lines
|
||||
|
||||
def getdata(self, cmd, mode="tokens"):
|
||||
'''returns a generator that yields every token on every line starting
|
||||
with 'cmd'. if mode is "lines", you get a list for each line instead.'''
|
||||
if mode == "lines":
|
||||
return (f[1:] for f in self.lines if f[0]==cmd)
|
||||
else:
|
||||
return (i for f in self.lines if f[0]==cmd for i in f[1:])
|
||||
|
Loading…
Reference in New Issue
Block a user