Details
Details
- Reviewers
jasonbcox - Group Reviewers
Restricted Project - Commits
- rSTAGING4714cd362256: Make push only mandatory when magnetic anomaly activates.
rABC4714cd362256: Make push only mandatory when magnetic anomaly activates.
Added test cases in abc-magnetic-anomaly-activation
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
test/functional/abc-magnetic-anomaly-activation.py | ||
---|---|---|
58 ↗ | (On Diff #4497) | putting the import within the function definition looks very odd to me. any reason to not put it with the other imports at the top of the file? |
Comment Actions
Please clarify the import thing. I want to make sure this isn't my misunderstanding of something Python-specific. Basing my understanding on similar arguments made in the accepted answer here: https://stackoverflow.com/questions/3095071/in-python-what-happens-when-you-import-inside-of-a-function
test/functional/abc-magnetic-anomaly-activation.py | ||
---|---|---|
58 ↗ | (On Diff #4497) | Talked offline. Since this is only used once, importing here reduces scope of time. |