diff hgext/fsmonitor/pywatchman/pybser.py @ 41365: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 16f4b341288d
children 6469c23a40a2
line wrap: on
line diff
--- a/hgext/fsmonitor/pywatchman/pybser.py	Mon Sep 24 14:46:37 2018 -0700
+++ b/hgext/fsmonitor/pywatchman/pybser.py	Thu Jan 17 09:17:12 2019 -0800
@@ -267,7 +267,7 @@
             key = key[3:]
         try:
             return self._values[self._keys.index(key)]
-        except ValueError as ex:
+        except ValueError:
             raise KeyError('_BunserDict has no key %s' % key)
 
     def __len__(self):
@@ -420,7 +420,6 @@
 
 
 def _pdu_info_helper(buf):
-    bser_version = -1
     if buf[0:2] == EMPTY_HEADER[0:2]:
         bser_version = 1
         bser_capabilities = 0