diff --git a/letsencrypt/client/standalone_authenticator.py b/letsencrypt/client/standalone_authenticator.py index ef926f0ea..f025cbe6d 100644 --- a/letsencrypt/client/standalone_authenticator.py +++ b/letsencrypt/client/standalone_authenticator.py @@ -275,7 +275,7 @@ class StandaloneAuthenticator(object): listeners = [conn.pid for conn in psutil.net_connections() if conn.status == 'LISTEN' and conn.type == socket.SOCK_STREAM and - (conn.laddr[1] == port)] + conn.laddr[1] == port] try: if listeners and listeners[0] is not None: # conn.pid may be None if the current process doesn't have diff --git a/setup.py b/setup.py index d8243af8a..236cb4ff9 100755 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ install_requires = [ 'ConfArgParse', 'jsonschema', 'mock', - 'psutil>2.1.0', # net_connections introduced in 2.1.0 + 'psutil>=2.1.0', # net_connections introduced in 2.1.0 'pycrypto', 'PyOpenSSL', 'python-augeas',