hgweb: removed unnecessary del before function return
authorMartin Geisler <mg@daimi.au.dk>
Sat, 16 Aug 2008 16:32:57 +0200
changeset 6914 95f35b553ae6
parent 6913 580d5e6bfc1f
child 6917 b6fffcd97242
hgweb: removed unnecessary del before function return Deleting tmpl just before the return statement should have no effect since tmpl goes out of scope anyway. But it confuses pyflakes who thinks tmpl is undefined when it is used in the except blocks below.
mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Sat Aug 16 14:46:56 2008 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Sat Aug 16 16:32:57 2008 +0200
@@ -168,7 +168,6 @@
                 req.respond(HTTP_OK, ctype)
 
             req.write(content)
-            del tmpl
             return []
 
         except revlog.LookupError, err: