Python 3 fixes (patch #296)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7161 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2020-03-24 02:35:17 +00:00
parent 06f7335cc8
commit bdbfff3cf2
5 changed files with 9 additions and 7 deletions

View file

@ -366,7 +366,7 @@ defenv.Execute(Delete('$TESTDISTDIR'))
def Distribute(files, names, component, path, subpath, alias, install_alias=None):
files = MakeFileList(files)
names = names or map(lambda x: x.name, files)
names = names or list(map(lambda x: x.name, files))
if isinstance(names, str):
names = [names]