changeset 5915 | d0576d065993 |
parent 5269 | 46c5e1ee8aaa |
child 5974 | bed929082b58 |
--- a/mercurial/templater.py Mon Jan 21 13:37:27 2008 -0200 +++ b/mercurial/templater.py Sun Jan 20 14:39:25 2008 +0100 @@ -82,7 +82,7 @@ '''perform expansion. t is name of map element to expand. map is added elements to use during expansion.''' - if not self.cache.has_key(t): + if not t in self.cache: try: self.cache[t] = file(self.map[t]).read() except IOError, inst: