mercurial/templater.py
changeset 16686 67964cda8701
parent 14944 e2c413bde8a5
child 17334 39c01f8e7b39
--- 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: