changeset 43972:7a2c49a3cbae

debug: drop unused variable assignments Caught by PyCharm. Differential Revision: https://phab.mercurial-scm.org/D7740
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 27 Dec 2019 13:24:20 -0500
parents 6d2b5c4efdae
children ca5bd34c597b
files mercurial/debugcommands.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Fri Dec 27 13:18:19 2019 -0500
+++ b/mercurial/debugcommands.py	Fri Dec 27 13:24:20 2019 -0500
@@ -331,9 +331,9 @@
                     )
                 )
 
-        chunkdata = gen.changelogheader()
+        gen.changelogheader()
         showchunks(b"changelog")
-        chunkdata = gen.manifestheader()
+        gen.manifestheader()
         showchunks(b"manifest")
         for chunkdata in iter(gen.filelogheader, {}):
             fname = chunkdata[b'filename']
@@ -341,7 +341,7 @@
     else:
         if isinstance(gen, bundle2.unbundle20):
             raise error.Abort(_(b'use debugbundle2 for this file'))
-        chunkdata = gen.changelogheader()
+        gen.changelogheader()
         for deltadata in gen.deltaiter():
             node, p1, p2, cs, deltabase, delta, flags = deltadata
             ui.write(b"%s%s\n" % (indent_string, hex(node)))