mirror of https://github.com/ansible/ansible.git
Micro-optimization: replace s.find(x)!=-1 with x in s
timeit shows a speedup of ~3x on Python 2.7.5 x86_64. It also makes the code a bit shorter.reviewable/pr18780/r1
parent
c757b6624f
commit
368e3c8310
Loading…
Reference in New Issue