Mercurial > public > mercurial-scm > hg-stable
diff mercurial/transaction.py @ 41387:876494fd967d
cleanup: delete lots of unused local variables
These were found by IntelliJ. There are many more, but these seemed
pretty safe.
Differential Revision: https://phab.mercurial-scm.org/D5629
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 17 Jan 2019 09:17:12 -0800 |
parents | 3e2c02836420 |
children | 8502f76dbfd7 |
line wrap: on
line diff
--- a/mercurial/transaction.py Mon Sep 24 14:46:37 2018 -0700 +++ b/mercurial/transaction.py Thu Jan 17 09:17:12 2019 -0800 @@ -89,7 +89,7 @@ except (IOError, OSError) as inst: if inst.errno != errno.ENOENT: raise - except (IOError, OSError, error.Abort) as inst: + except (IOError, OSError, error.Abort): if not c: raise @@ -101,7 +101,7 @@ for f in backupfiles: if opener.exists(f): opener.unlink(f) - except (IOError, OSError, error.Abort) as inst: + except (IOError, OSError, error.Abort): # only pure backup file remains, it is sage to ignore any error pass