[PATCH 1 of 2] branchmap: remove unused exception variable

Gregory Szorc gregory.szorc at gmail.com
Sat Mar 12 20:13:25 EST 2016


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1457827699 28800
#      Sat Mar 12 16:08:19 2016 -0800
# Node ID cd89ed3be2b6f5db1d716bc0ffea4ee5480619ac
# Parent  70c2f8a982766b512e9d7f41f2d93fdb92f5481f
branchmap: remove unused exception variable

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
--- a/mercurial/branchmap.py
+++ b/mercurial/branchmap.py
@@ -358,17 +358,17 @@ class revbranchcache(object):
         self._repo = repo
         self._names = [] # branch names in local encoding with static index
         self._rbcrevs = array('c') # structs of type _rbcrecfmt
         self._rbcsnameslen = 0
         try:
             bndata = repo.vfs.read(_rbcnames)
             self._rbcsnameslen = len(bndata) # for verification before writing
             self._names = [encoding.tolocal(bn) for bn in bndata.split('\0')]
-        except (IOError, OSError) as inst:
+        except (IOError, OSError):
             if readonly:
                 # don't try to use cache - fall back to the slow path
                 self.branchinfo = self._branchinfo
 
         if self._names:
             try:
                 data = repo.vfs.read(_rbcrevs)
                 self._rbcrevs.fromstring(data)


More information about the Mercurial-devel mailing list