diff contrib/check-code.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 24e493ec2229
children 7d1798ec92a3
line wrap: on
line diff
--- a/contrib/check-code.py	Mon Sep 24 14:46:37 2018 -0700
+++ b/contrib/check-code.py	Thu Jan 17 09:17:12 2019 -0800
@@ -610,7 +610,7 @@
     try:
         with opentext(f) as fp:
             try:
-                pre = post = fp.read()
+                pre = fp.read()
             except UnicodeDecodeError as e:
                 print("%s while reading %s" % (e, f))
                 return result