Mercurial > hg > TagInTheMiddle
diff taginthemiddle/model.py @ 8:fc3491dfe374
correct function signature for reading tags file
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 05 May 2010 22:16:25 -0700 |
parents | 1182315b18ac |
children | 12344c001831 |
line wrap: on
line diff
--- a/taginthemiddle/model.py Wed May 05 22:13:36 2010 -0700 +++ b/taginthemiddle/model.py Wed May 05 22:16:25 2010 -0700 @@ -27,11 +27,10 @@ self.tags = {} self.urls = {} self.times = {} - self.read(path) - + self.read() def read(self): - for line in file(path).readlines(): + for line in file(self.path).readlines(): line = line.strip() if not line: continue