diff mercurial/templater.py @ 11305:d4cafcb63f77

cleanups: undefined variables
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 08 Jun 2010 09:30:45 +0200
parents 62216faed067
children b014f998959d
line wrap: on
line diff
--- a/mercurial/templater.py	Tue Jun 08 09:30:33 2010 +0200
+++ b/mercurial/templater.py	Tue Jun 08 09:30:45 2010 +0200
@@ -17,7 +17,7 @@
     if isinstance(thing, str):
         yield thing
     elif not hasattr(thing, '__iter__'):
-        if i is not None:
+        if thing is not None:
             yield str(thing)
     else:
         for i in thing: