This PR addresses several code quality issues in the contrib/seeds/makeseeds.py script:
Changes
- Remove unused variable: Eliminate unused
ivariable in thefilterbyasnfunction enumeration - Simplify control flow: Remove unnecessary
elseclause afterreturnstatement inparselinefunction - Fix file encoding: Add explicit UTF-8 encoding specification to file operations for better cross-platform compatibility
- Correct type annotation: Fix incorrect type annotation for
asn_countdictionary that was causing type checking errors
Testing
- Verified the script compiles successfully after changes
- Confirmed pylint score improved from 8.59/10 to 8.78/10
- No functional changes to the seed generation logic
Motivation
These changes improve code maintainability and fix compatibility issues without altering the core functionality of the seed generation process.