psutil>=2.1.0; remove redundant parentheses

This commit is contained in:
Seth Schoen
2015-02-20 14:37:23 -08:00
parent daf7c81e5d
commit e17b9907f8
2 changed files with 2 additions and 2 deletions
@@ -275,7 +275,7 @@ class StandaloneAuthenticator(object):
listeners = [conn.pid for conn in psutil.net_connections() listeners = [conn.pid for conn in psutil.net_connections()
if conn.status == 'LISTEN' and if conn.status == 'LISTEN' and
conn.type == socket.SOCK_STREAM and conn.type == socket.SOCK_STREAM and
(conn.laddr[1] == port)] conn.laddr[1] == port]
try: try:
if listeners and listeners[0] is not None: if listeners and listeners[0] is not None:
# conn.pid may be None if the current process doesn't have # conn.pid may be None if the current process doesn't have
+1 -1
View File
@@ -26,7 +26,7 @@ install_requires = [
'ConfArgParse', 'ConfArgParse',
'jsonschema', 'jsonschema',
'mock', 'mock',
'psutil>2.1.0', # net_connections introduced in 2.1.0 'psutil>=2.1.0', # net_connections introduced in 2.1.0
'pycrypto', 'pycrypto',
'PyOpenSSL', 'PyOpenSSL',
'python-augeas', 'python-augeas',