Make whitelist a set as it is more logical & idiomatic

This commit is contained in:
Kjistóf 2017-05-28 18:50:57 +02:00 committed by Kristóf Tóth
parent 734f4c1a04
commit 286e666091

View File

@ -9,7 +9,7 @@ from os.path import join as joinpath
# dots are ok # dots are ok
# do not ruin previous work # do not ruin previous work
# dashes are ok # dashes are ok
whitelist = [' ', '.', '_', '-'] whitelist = (' ', '.', '_', '-')
for path in argv[1:]: for path in argv[1:]:
dir = dirname(path) dir = dirname(path)