Make whitelist a set as it is more logical & idiomatic
This commit is contained in:
parent
734f4c1a04
commit
286e666091
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user