changeset 6914:95f35b553ae6

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.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 16 Aug 2008 16:32:57 +0200
parents 580d5e6bfc1f
children b6fffcd97242
files mercurial/hgweb/hgweb_mod.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: