Skip to content

Commit

Permalink
use 'inp' instead of 'input'
Browse files Browse the repository at this point in the history
  • Loading branch information
barnumbirr committed Mar 23, 2015
1 parent ef9fa95 commit 55ab396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hazelnut/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def dict(self):
d = dict(x.strip().split(None, 1) for x in f)
return d

def search(self, input):
def search(self, inp):
with open(self.get_path(), 'r') as f:
match = [s for s in f if input in s]
match = [s for s in f if inp in s]
# will have to figure out a way to make this case insensitive.
# mem.search('Swap') and mem.search('swap') should both match.
return match

0 comments on commit 55ab396

Please sign in to comment.