From 286e66609117d0e6027ac67ecb90847fae8cf89b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 28 May 2017 18:50:57 +0200 Subject: [PATCH] Make whitelist a set as it is more logical & idiomatic --- normalisename.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalisename.py b/normalisename.py index b055aa2..4b7e563 100644 --- a/normalisename.py +++ b/normalisename.py @@ -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)