Skip to content

Commit

Permalink
async StreamSockets were erronously subclassing the abstract Datagram…
Browse files Browse the repository at this point in the history
…Socket
  • Loading branch information
rthalley committed Jan 31, 2021
1 parent 5f45d60 commit 5449af5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dns/_asyncio_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def getsockname(self):
return self.transport.get_extra_info('sockname')


class StreamSocket(dns._asyncbackend.DatagramSocket):
class StreamSocket(dns._asyncbackend.StreamSocket):
def __init__(self, af, reader, writer):
self.family = af
self.reader = reader
Expand Down
2 changes: 1 addition & 1 deletion dns/_curio_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def getsockname(self):
return self.socket.getsockname()


class StreamSocket(dns._asyncbackend.DatagramSocket):
class StreamSocket(dns._asyncbackend.StreamSocket):
def __init__(self, socket):
self.socket = socket
self.family = socket.family
Expand Down
2 changes: 1 addition & 1 deletion dns/_trio_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def getsockname(self):
return self.socket.getsockname()


class StreamSocket(dns._asyncbackend.DatagramSocket):
class StreamSocket(dns._asyncbackend.StreamSocket):
def __init__(self, family, stream, tls=False):
self.family = family
self.stream = stream
Expand Down

0 comments on commit 5449af5

Please sign in to comment.