comparison hgext/remotefilelog/debugcommands.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 194e43c2bac9
children 941685500125
comparison
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
173 173
174 def _decompressblob(raw): 174 def _decompressblob(raw):
175 return zlib.decompress(raw) 175 return zlib.decompress(raw)
176 176
177 def parsefileblob(path, decompress): 177 def parsefileblob(path, decompress):
178 raw = None
179 f = open(path, "rb") 178 f = open(path, "rb")
180 try: 179 try:
181 raw = f.read() 180 raw = f.read()
182 finally: 181 finally:
183 f.close() 182 f.close()