diff --git a/dev/tools/whitelist/whitelist_tool.py b/dev/tools/whitelist/whitelist_tool.py index 5c64177d..3f59e027 100644 --- a/dev/tools/whitelist/whitelist_tool.py +++ b/dev/tools/whitelist/whitelist_tool.py @@ -56,7 +56,7 @@ def saveChanges(): for word in LOCAL_LIST: - if word in addedWords or word.contains('\\'): + if word in addedWords or '\\' in word: continue try: word.decode('ascii')