Mercurial > evolve
changeset 4304:604732387e33 stable
linter: silence rightful complains about unused variable
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 21 Dec 2018 19:48:01 +0100 |
parents | 699e25687cc5 |
children | afb60b6576e5 8aa28e68ac44 |
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 Thu Dec 13 17:41:06 2018 +0100 +++ b/hgext3rd/evolve/compat.py Fri Dec 21 19:48:01 2018 +0100 @@ -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 Thu Dec 13 17:41:06 2018 +0100 +++ b/hgext3rd/evolve/legacy.py Fri Dec 21 19:48:01 2018 +0100 @@ -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