# HG changeset patch # User Martijn Pieters # Date 1542797227 0 # Node ID a4a35fb44af301dda466767040a5d4b22141edef # Parent 9882fed37ea9613f14596f85fc7b1e9d187e4a3a style: remove unused variables Both `as e` references are not used and can go. diff -r 9882fed37ea9 -r a4a35fb44af3 hgext3rd/evolve/compat.py --- a/hgext3rd/evolve/compat.py Mon Nov 19 02:34:39 2018 +0000 +++ b/hgext3rd/evolve/compat.py Wed Nov 21 10:47:07 2018 +0000 @@ -171,7 +171,7 @@ import mercurial.utils.dateutil makedate = mercurial.utils.dateutil.makedate parsedate = mercurial.utils.dateutil.parsedate -except ImportError as e: +except ImportError: import mercurial.util makedate = mercurial.util.makedate parsedate = mercurial.util.parsedate diff -r 9882fed37ea9 -r a4a35fb44af3 hgext3rd/evolve/legacy.py --- a/hgext3rd/evolve/legacy.py Mon Nov 19 02:34:39 2018 +0000 +++ b/hgext3rd/evolve/legacy.py Wed Nov 21 10:47:07 2018 +0000 @@ -32,7 +32,7 @@ try: from mercurial.utils.dateutil import makedate -except ImportError as e: +except ImportError: # compat with hg < 4.6 from mercurial.util import makedate