diff --git a/scripts/change_to_ascii.py b/scripts/change_to_ascii.py index 86d3a18a..1f8ae81b 100644 --- a/scripts/change_to_ascii.py +++ b/scripts/change_to_ascii.py @@ -29,9 +29,9 @@ def define_args(args): def strip_characters(args): - if "whitespace" in args: + if args.whitespace: replacer = " " - elif "delete" in args: + elif args.delete: replacer = "" # default to delete else: