Mercurial > evolve
changeset 4266:a4a35fb44af3
style: remove unused variables
Both `as e` references are not used and can go.
author | Martijn Pieters <mj@octobus.net> |
---|---|
date | Wed, 21 Nov 2018 10:47:07 +0000 |
parents | 9882fed37ea9 |
children | 18ed2a237ab5 |
files | hgext3rd/evolve/compat.py hgext3rd/evolve/legacy.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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