Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templater.py @ 16686:67964cda8701
cleanup: "not x in y" -> "x not in y"
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:00:57 +0200 |
parents | e2c413bde8a5 |
children | 39c01f8e7b39 |
line wrap: on
line diff
--- a/mercurial/templater.py Sat May 12 16:00:53 2012 +0200 +++ b/mercurial/templater.py Sat May 12 16:00:57 2012 +0200 @@ -312,7 +312,7 @@ def load(self, t): '''Get the template for the given template name. Use a local cache.''' - if not t in self.cache: + if t not in self.cache: try: self.cache[t] = util.readfile(self.map[t][1]) except KeyError, inst: