[PATCH] branchmap: remove unused exception variable
Gregory Szorc
gregory.szorc at gmail.com
Sun Jun 26 02:52:57 UTC 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 d649fe29fefb6827b3f47b8cad05d1188ea4e325
# Parent fbe380dc227a0240939aa5a4941eda70d958ea40
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