diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-05 00:26:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-05 00:26:42 +0400 |
commit | dba5ef3ba88d06c1927872bf4b97e22d0e750546 (patch) | |
tree | 55400b4d07fb9b3996da50a080287ccc61c40789 /source/blender/makesrna/rna_cleanup | |
parent | 1d4316f35fcf2f4b9ed73b648422f4e36a071881 (diff) |
code cleanup: python - pass multiple args to string startswith() / endswith() functions rather than calling multiple times.
Diffstat (limited to 'source/blender/makesrna/rna_cleanup')
-rwxr-xr-x | source/blender/makesrna/rna_cleanup/rna_cleaner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner.py b/source/blender/makesrna/rna_cleanup/rna_cleaner.py index b75d177d809..e3359fbae59 100755 --- a/source/blender/makesrna/rna_cleanup/rna_cleaner.py +++ b/source/blender/makesrna/rna_cleanup/rna_cleaner.py @@ -60,7 +60,7 @@ def check_commandline(): usage() if sys.argv[1] == '-h': help() - elif not (sys.argv[1].endswith(".txt") or sys.argv[1].endswith(".py")): + elif not sys.argv[1].endswith((".txt", ".py")): print ('\nBad input file extension... exiting.') usage() else: |