infocalypse
 

Commit (click to see the diff): 88a622989650abbcb13637d0d7a8eb1a304c1387

Use more idiomatic empty string and zero checks. An empty string is False, as is 0. Checking for 0 as a boolean makes sense when it's semantically a set-or-not kind of check, but not if it's semantically a number.

Steve Dougherty

Diffstat

Änderung:        351:88a622989650
Nutzer:          Steve Dougherty 
Datum:           Sun Jul 28 09:20:22 2013 -0400
Zusammenfassung: Use more idiomatic empty string and zero checks.

 infocalypse/__init__.py |   8 ++++----
 infocalypse/commands.py |  39 ++++++++++++++++++---------------------
 2 Dateien verändert, 22 Zeilen hinzugefügt(+), 25 Zeilen entfernt(-)

Files in this revision