Commit 57c4a093 authored by Jason Madden's avatar Jason Madden

Fix property type on linux.

parent 52824f18
......@@ -65,7 +65,7 @@ class socket(object):
# Only defined under Linux
@property
def type(self):
return _socket.socket.type.__get__(self) & ~_socket.SOCK_NONBLOCK
return _socket.socket.type.__get__(self._sock) & ~_socket.SOCK_NONBLOCK
def __enter__(self):
return self
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment