Changes based on style and lint checks. Some empty docstrings remain … #1368
No reviewers
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-11-28#1368
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "final_code_quality_10"
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?
…to be completed in the future. (final_code_quality_10)
Repository contributions to the PyBitmessage project
Code
Documentation
fab build_docs
successfully, ask for someone to run it against your branchTests
fab tests
successfully, ask for someone to run it against your branchTranslations
Gitiquette
addresses #123
orfixes #234
in your commit messagesUnused, unfinished and obsolete. Remove whole file.
@ -101,3 +125,4 @@
""""""
try:
data = unicode(data, 'utf-8')
except UnicodeDecodeError:
This may have changed in the meantime, please rebase so that I can see.
@ -242,4 +253,3 @@
reaper = []
for i in self.inboundConnections.values() + self.outboundConnections.values():
minTx = time.time() - 20
if i.fullyEstablished:
Since you refactored the cycle, you don't need reaper anymore, you can directly call
self.removeConnection(i)
. The reason why it's necessary to do it in two cycles is that you can't remove items from a dict while iterating it.@ -144,3 +172,4 @@
try:
if item.payload is None:
item.payload = self.getData(hashId)
except IOError:
@ -162,12 +193,14 @@ class FilesystemInventory(InventoryStorage):
return []
You can do a
for _, streamDict
instead of# pylint: disable=unused-variable
.Update docstrings etc.
+1 for ruthlessness :)
Rebased.
No,
helper_bootstrap.dns()
is above. That's enough.I'll accept it as it is now, it isn't a code quality issue, it can be changed in a separate PR.
@PeterSurda any PR makes no sense if changes reverted soon after merge.
I spent a week to find a proper way to check knownnodes actuality. If someone thinks I did it wrong, he should create a separate issue, not revert my changes in unrelated PR.
I don't have time to debug so let's go with what @g1itch said as he tested it. Please revert.
Please revert the changes as @g1itch said.
So, I removed line 160 which I guess must have been added by git during the rebase. All other active lines are as they were. If there's something else I'm supposed to have reverted, let me know.