summaryrefslogtreecommitdiff
path: root/psutil/_compat.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-04-29 10:50:21 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-04-29 10:50:21 +0200
commit2a40c610c9716d16fdd93cb9453e01b70def3672 (patch)
tree7760074e24c4916a28df0db41907de8394b3d1d8 /psutil/_compat.py
parent319e2fd4f54c6cc1bc2f9f9c8990d8b18593f82e (diff)
downloadpsutil-2a40c610c9716d16fdd93cb9453e01b70def3672.tar.gz
fix python bug of socket.setblocking() which changes socket.type value - http://bugs.python.org/issue30204
Diffstat (limited to 'psutil/_compat.py')
-rw-r--r--psutil/_compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_compat.py b/psutil/_compat.py
index 5777c38d..9f2182c2 100644
--- a/psutil/_compat.py
+++ b/psutil/_compat.py
@@ -251,7 +251,7 @@ except ImportError:
# A backport of contextlib.nested for Python 3.
-nested = getattr(contextlib, "nested")
+nested = getattr(contextlib, "nested", None)
if nested is None:
@contextlib.contextmanager
def nested(*managers):