diff mercurial/hgweb/hgwebdir_mod.py @ 41387:876494fd967d

cleanup: delete lots of unused local variables These were found by IntelliJ. There are many more, but these seemed pretty safe. Differential Revision: https://phab.mercurial-scm.org/D5629
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 17 Jan 2019 09:17:12 -0800
parents 46781c1b5049
children d8e55c0c642c
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Mon Sep 24 14:46:37 2018 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Jan 17 09:17:12 2019 -0800
@@ -143,7 +143,7 @@
                 path = path[:-len(discarded) - 1]
 
                 try:
-                    r = hg.repository(ui, path)
+                    hg.repository(ui, path)
                     directory = False
                 except (IOError, error.RepoError):
                     pass