[tor-commits] [stem/master] stem/util/connection.py: Optimize validators.