diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-07-06 15:54:40 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-07-06 15:54:40 (GMT) |
commit | 0eaef4f2b8064882e7497695ba352c719b543dc8 (patch) | |
tree | 026763f81c0fb73d75d99d8175525c18a5d7ee7a /src | |
parent | 4529aac0b4e0cc5aeb7fe8dc107080c5b31cf072 (diff) | |
download | SCons-0eaef4f2b8064882e7497695ba352c719b543dc8.zip SCons-0eaef4f2b8064882e7497695ba352c719b543dc8.tar.gz SCons-0eaef4f2b8064882e7497695ba352c719b543dc8.tar.bz2 |
python micro optimization in faster than find
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/PathList.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/PathList.py b/src/engine/SCons/PathList.py index 77e30c4..76cbeab 100644 --- a/src/engine/SCons/PathList.py +++ b/src/engine/SCons/PathList.py @@ -104,11 +104,11 @@ class _PathList(object): pl = [] for p in pathlist: try: - index = p.find('$') + found = '$' in p except (AttributeError, TypeError): type = TYPE_OBJECT else: - if index == -1: + if not found: type = TYPE_STRING_NO_SUBST else: type = TYPE_STRING_SUBST |