Skip to content

Conversation

practicalswift
Copy link
Contributor

The commit in this PR removes unused Python imports.

@practicalswift practicalswift changed the title [gardening] Remove unused Python imports [trivial] Remove unused Python imports Jan 10, 2017
@practicalswift practicalswift force-pushed the remove-unused-python-import branch from bd1c6b4 to 41c1c45 Compare January 10, 2017 22:30
@laanwj
Copy link
Member

laanwj commented Jan 11, 2017

Makes sense. Is there an automated tool you used to find these?

@practicalswift
Copy link
Contributor Author

practicalswift commented Jan 12, 2017

@laanwj Yes, pycodestyle (formerly pep8) is probably the most common tool for checking Python code against the Python Software Foundation's Style Guide for Python Code (PEP-8). Unused imports is one class of violations covered by pycodestyle.

I've done some cleanup work for the apple/swift project - see here - which included things such as bringing the Python code base in line with PEP-8. Please let me know if that kind of contributions would be welcome in the Bitcoin project and I'll dig in! :-)

@jtimon
Copy link
Contributor

jtimon commented Jan 13, 2017

Concept ACK

@practicalswift practicalswift changed the title [trivial] Remove unused Python imports Remove unused Python imports Jan 13, 2017
@practicalswift practicalswift force-pushed the remove-unused-python-import branch from 41c1c45 to 95bab82 Compare January 13, 2017 18:03
@practicalswift
Copy link
Contributor Author

Removed [trivial] from the commit title.

@jnewbery
Copy link
Contributor

ACK

Feel free to open PRs for tidying up python coding style. I'm happy to review anything in the qa directory.

@practicalswift
Copy link
Contributor Author

@jnewbery OK, great! Will do! :-)

@practicalswift
Copy link
Contributor Author

@jnewbery Do you know who to ask for a review of PR #9529? :-)

@practicalswift
Copy link
Contributor Author

@jnewbery What is the proper protocol to follow w.r.t. to submitting Python cleanups? Should I wait for this initial Python cleanup PR to get merged before proceeding with further cleanups, or what is the preferred way to proceed? :-)

@maflcko
Copy link
Member

maflcko commented Jan 18, 2017

utACK 95bab82

@maflcko maflcko merged commit 95bab82 into bitcoin:master Jan 18, 2017
maflcko pushed a commit that referenced this pull request Jan 18, 2017
95bab82 Remove unused Python imports (practicalswift)
@jnewbery
Copy link
Contributor

@practicalswift - probably best to ask @MarcoFalke since he maintains the qa and test code. In general I'd recommend not making parallel PRs which touch a lot of files, since you'll probably end up having to rebase.

@practicalswift
Copy link
Contributor Author

@jnewbery Makes sense! My second Python cleanup PR is #9532 which removes 8 unused Python variables (+ one unused variable in the C++ code :-)).

@maflcko
Copy link
Member

maflcko commented Jan 18, 2017 via email

codablock pushed a commit to codablock/dash that referenced this pull request Jan 21, 2018
95bab82 Remove unused Python imports (practicalswift)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
95bab82 Remove unused Python imports (practicalswift)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 27, 2019
95bab82 Remove unused Python imports (practicalswift)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 27, 2019
…dablock committed on Jan 20, 2018 Use version 2 blocks for miner_tests … @codablock codablock committed on Jan 20, 2018   Merge bitcoin#7871: Manual block file pruning.  …  @laanwj @codablock laanwj authored and codablock committed on Jan 11, 2017   Merge bitcoin#9507: Fix use-after-free in CTxMemPool::removeConflicts()  …  @sipa @codablock sipa authored and codablock committed on Jan 11, 2017   Merge bitcoin#9297: Various RPC help outputs updated  …  @MarcoFalke @codablock MarcoFalke authored and codablock committed on Jan 12, 2017   Merge bitcoin#9416: travis: make distdir before make  …  @MarcoFalke @codablock MarcoFalke authored and codablock committed on Jan 12, 2017   Merge bitcoin#9520: Deprecate non-txindex getrawtransaction and bette…  …  @MarcoFalke @codablock MarcoFalke authored and codablock committed on Jan 12, 2017   Merge bitcoin#9518: Return height of last block pruned by pruneblockc…  …  @MarcoFalke @codablock MarcoFalke authored and codablock committed on Jan 12, 2017   Merge bitcoin#9472: Disentangle progress estimation from checkpoints …  …  @laanwj @codablock laanwj authored and codablock committed on Jan 12, 2017   Merge bitcoin#8883: Add all standard TXO types to bitcoin-tx  …  @laanwj @codablock laanwj authored and codablock committed on Jan 12, 2017   Merge bitcoin#9261: Add unstored orphans with rejected parents to rec…  …  @laanwj @codablock laanwj authored and codablock committed on Jan 12, 2017   Merge bitcoin#9468: [Depends] Dependency updates for 0.14.0  …  @laanwj @codablock laanwj authored and codablock committed on Jan 12, 2017   Merge bitcoin#9222: Add 'subtractFeeFromAmount' option to 'fundrawtra…  …  @laanwj @codablock laanwj authored and codablock committed on Jan 12, 2017   Merge bitcoin#9490: Replace FindLatestBefore used by importmuti with …  …  @sipa @codablock sipa authored and codablock committed on Jan 13, 2017   Merge bitcoin#9469: [depends] Qt 5.7.1  …  @laanwj @codablock laanwj authored and codablock committed on Jan 15, 2017   Merge bitcoin#9380: Separate different uses of minimum fees  …  @laanwj @codablock laanwj authored and codablock committed on Jan 16, 2017   Remove SegWit related code in dash-tx  @codablock codablock committed on Sep 21, 2017   Merge bitcoin#9561: Wake message handling thread when we receive a ne…  …  @sipa @codablock sipa authored and codablock committed on Jan 17, 2017   Merge bitcoin#9508: Remove unused Python imports  …  @MarcoFalke @codablock MarcoFalke authored and codablock committed on Jan 18, 2017   Merge bitcoin#9512: Fix various things -fsanitize complains about
@practicalswift practicalswift deleted the remove-unused-python-import branch April 10, 2021 19:28
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants