# HG changeset patch # User Martin Geisler # Date 1218897177 -7200 # Node ID 95f35b553ae699c1e564e6915b3faea253f209ce # Parent 580d5e6bfc1faf306d9a23267753b730f820df0f 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. diff -r 580d5e6bfc1f -r 95f35b553ae6 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: