summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/maint/updateFallbackDirs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/maint/updateFallbackDirs.py b/scripts/maint/updateFallbackDirs.py
index c003a1b6a2..464d8476f0 100755
--- a/scripts/maint/updateFallbackDirs.py
+++ b/scripts/maint/updateFallbackDirs.py
@@ -219,8 +219,7 @@ def cleanse_unprintable(raw_string):
# Remove all unprintable characters
cleansed_string = ''
for c in raw_string:
- if (c in string.ascii_letters or c in string.digits
- or c in string.punctuation or c in string.whitespace):
+ if c in string.printable:
cleansed_string += c
return cleansed_string