mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix unused local variables caught by pychecker.
Fixes a bug for Solaris pkgtool (bdist_pkgtool) that would have prevented it from building subpackages.
This commit is contained in:
parent
a181ec07af
commit
a2f9989c1a
6 changed files with 8 additions and 22 deletions
|
@ -305,7 +305,6 @@ def expand_makefile_vars(s, vars):
|
|||
while 1:
|
||||
m = _findvar1_rx.search(s) or _findvar2_rx.search(s)
|
||||
if m:
|
||||
name = m.group(1)
|
||||
(beg, end) = m.span()
|
||||
s = s[0:beg] + vars.get(m.group(1)) + s[end:]
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue