Merge pull request #258 from radarhere/master

Removed unused variables
This commit is contained in:
Robin Dunn
2017-04-04 13:18:14 -07:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -1333,7 +1333,7 @@ def cmd_build_py(options, args):
WX_CONFIG = 'wx-config' # hope it is on the PATH
wafBuildBase = wafBuildDir = getWafBuildBase()
wafBuildBase = wafBuildDir = getWafBuildBase()
if isWindows:
wafBuildDir = posixjoin(wafBuildBase, 'release')
@@ -1527,7 +1527,6 @@ def cmd_clean_wx(options, args):
if options.both:
options.debug = True
msw = getMSWSettings(options)
cfg = Config()
deleteIfExists(opj(msw.dllDir, 'msw'+msw.dll_type))
delFiles(glob.glob(opj(msw.dllDir, 'wx*%s%s*' % (version2_nodot, msw.dll_type))))
delFiles(glob.glob(opj(msw.dllDir, 'wx*%s%s*' % (version3_nodot, msw.dll_type))))
@@ -1686,7 +1685,7 @@ def cmd_sdist(options, args):
copyFile(name, destdir)
# Also add the waf executable
waf = getWafCmd()
getWafCmd()
copyFile('bin/waf-%s' % wafCurrentVersion, os.path.join(PDEST, 'bin'))
# and the REV.txt if there is one

View File

@@ -259,7 +259,6 @@ def wx_copy_file(src, dst, preserve_mode=1, preserve_times=1, update=0,
else:
# make a new, matching symlink in dst
if os.path.isdir(dst):
dir = dst
dst = os.path.join(dst, os.path.basename(src))
linkdst = os.readlink(src)
if verbose >= 1: