SIGN IN SIGN UP

Wholistic code cleanup / modernization:

* Use +=
* Replace loop logic with str.splitlines equivalent
* Don't use variable names that shadow tuple, list, and str
* Use dict.get instead of equivalent try/except
* Minor loop logic simplications
R
Raymond Hettinger committed
bb5fbc4af9ee68428c26a3a2e2b1f6747a787473
Parent: 9aa890a