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
1 changed files with 1 additions and 1 deletions

View File

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