Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename TCPStream to SocketStream #517

Merged
merged 1 commit into from
Nov 8, 2019

Conversation

lundberg
Copy link
Contributor

@lundberg lundberg commented Nov 8, 2019

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

@lundberg lundberg changed the title Rename BaseTCPStream/TCPStream to BaseSocketStream/SocketStream Rename TCPStream to SocketStream Nov 8, 2019
Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

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

Nice one!

@@ -189,13 +189,13 @@ def __getattr__(self, name: str) -> typing.Any:
return getattr(self.backend, name)


class MockRawSocketStream(BaseTCPStream):
class MockRawSocketStream(BaseSocketStream):
Copy link
Member

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:master Nov 8, 2019
@lundberg lundberg deleted the rename-tcpstream branch November 8, 2019 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants