asyncore_pollchoose import refactor #1381
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-10#1381
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/network/asyncore_pollchoose.py could benefit from changes like this to imports, however it would imply importing errno directly which would require some refactoring of the file which is out of scope for the code_quality work which is already approved. This change was recommended by @g1itch
This issue is to ensure such refactoring is considered at some point.
You can also use
importlib
to fool the lints, like here.This is based on code which is originally included in python 2.7, someone patched it to add epoll and kqueue support and I made further changes.
I don't remember exactly whether I added winsock handling fully, or just amended it based on my tests. I don't mind if it's changed, but it would need further testing and now's not the time for that.