rapid7/metasploit-framework — pull request #2696 by OJ (2013-11-27 01:26:50+00:00)
Title: Tweak impl of add_process and add_channel

These two functions were using an O(n) based approach to adding new processes and channels. This instead uses `len()`, which is O(1), to achieve the same thing. It's not a biggie, but it does make things ever-so-slightly quicker and ever-so-slightly more Pythony.