Patchwork D6757: bdiff-torture: fix pyflakes warning reporting undefined name 'inst'

login
register
mail settings
Submitter phabricator
Date Aug. 22, 2019, 5:55 p.m.
Message ID <differential-rev-PHID-DREV-js37fzmz5n6zqphhz33m-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41386/
State Superseded
Headers show

Comments

phabricator - Aug. 22, 2019, 5:55 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Looks like I got a latest version of pyflakes somehow or it's running on py3 and
  it spotted this.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6757

AFFECTED FILES
  contrib/bdiff-torture.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/contrib/bdiff-torture.py b/contrib/bdiff-torture.py
--- a/contrib/bdiff-torture.py
+++ b/contrib/bdiff-torture.py
@@ -53,8 +53,7 @@ 
         test1(a, b)
         return
     except Exception as inst:
-        pass
-    print("exception:", inst)
+        print("exception:", inst)
     reducetest(a, b)
 
 def test(a, b):