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

Remove is_trio_socket #326

Merged
merged 1 commit into from
Sep 15, 2017
Merged

Conversation

njsmith
Copy link
Member

@njsmith njsmith commented Sep 15, 2017

As pointed out in:

#170 (comment)

there are advantages to having the "is this a trio socket" check be
spelled using 'isinstance'. This commit un-deprecates the
trio.socket.SocketType name and makes it an abstract class that
concrete socket implementations should inherit from, and then gets rid
of is_trio_socket since it's now unnecessary.

As pointed out in:

  python-trio#170 (comment)

there are advantages to having the "is this a trio socket" check be
spelled using 'isinstance'. This commit un-deprecates the
trio.socket.SocketType name and makes it an abstract class that
concrete socket implementations should inherit from, and then gets rid
of is_trio_socket since it's now unnecessary.
This was referenced Sep 15, 2017
@codecov
Copy link

codecov bot commented Sep 15, 2017

Codecov Report

Merging #326 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #326      +/-   ##
==========================================
- Coverage   99.24%   99.24%   -0.01%     
==========================================
  Files          86       86              
  Lines       10327    10306      -21     
  Branches      726      726              
==========================================
- Hits        10249    10228      -21     
  Misses         61       61              
  Partials       17       17
Impacted Files Coverage Δ
trio/_abc.py 100% <ø> (ø) ⬆️
trio/socket.py 100% <ø> (ø) ⬆️
trio/_highlevel_socket.py 100% <100%> (ø) ⬆️
trio/tests/test_highlevel_open_tcp_stream.py 100% <100%> (ø) ⬆️
trio/tests/test_socket.py 100% <100%> (ø) ⬆️
trio/tests/test_highlevel_socket.py 100% <100%> (ø) ⬆️
trio/tests/test_highlevel_open_tcp_listeners.py 100% <100%> (ø) ⬆️
trio/_socket.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6107b25...9a3141d. Read the comment docs.

@njsmith njsmith merged commit 585ab4e into python-trio:master Sep 15, 2017
@njsmith njsmith deleted the remove-is_trio_socket branch September 15, 2017 20:55
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.

1 participant