Skip to content

Rename TCPStream to SocketStream - #517

Merged
florimondmanca merged 1 commit into
encode:masterfrom
lundberg:rename-tcpstream
Nov 8, 2019
Merged

Rename TCPStream to SocketStream#517
florimondmanca merged 1 commit into
encode:masterfrom
lundberg:rename-tcpstream

Conversation

@lundberg

Copy link
Copy Markdown
Contributor

This PR renames BaseTCPStream, backend subclasses asyncio.TCPStream and trio.TCPStream, to BaseSocketStream / SocketStream, to not limit name/usage to TCP specific streams.

Related to #511

@lundberglundberg changed the title Rename BaseTCPStream/TCPStream to BaseSocketStream/SocketStreamRename TCPStream to SocketStreamNov 8, 2019

@florimondmancaflorimondmanca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!



class MockRawSocketStream(BaseTCPStream):
class MockRawSocketStream(BaseSocketStream):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Us already using the term “socket stream” in this mock seems like a good indication that renaming is the right thing to do. :)

@florimondmanca
florimondmanca merged commit 1a32cf0 into encode:masterNov 8, 2019
@lundberg
lundberg deleted the rename-tcpstream branch November 8, 2019 21:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@lundberg@florimondmanca