-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPR] Improvements for interwiki.py
- add some type hints - use dict comprehensions to create dicts - remove While loop in Subject.assemble() because input_choice only continues if the given input is valid. Therefore 'r'ecject answer may not be handled because it just continues the for loop. - simplify sanity check and use error() to print the message - no OSError is expected in Subject.reportBacklinks(); remove try statement - simplify InterwikiBot.firstSubject() - remove InterwikiBot.__len__ and use self.subjects directly in InterwikiBot.isDone() Change-Id: I583b002e26db9a6701ee00a53482a4f725e21ee8
- Loading branch information
Showing
1 changed file
with
81 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters