{"shas":[["14b6439fa2993a9f1377862ce2e51d1d4b1ffb6a","cd1c2139308d6ba2ef5c50028ba60642520383c3@gmail.com","Make commit.py more pythonic.\n\nFirst, if you're only using a compiled regular expression once, at least use\nit completely. Every compiled regular expression in python allows you to call\nthe re functions on it passing one less argument.\n\nSecond, if you find yourself constantly checking to make sure the length of an\nobject is greater than 0, you're doing it wrong. In python a non-empty object (a\nlist, dictionary, tuple, or string that is not [], {}, () or '' respectively) is\n'True' or > 0 and an empty object is 0 or 'False'. This simplifies the code\ngreatly.\n\nIn reality, lines 71-80 could probably be simplified, but it isn't exactly\nimportant.","SigmaVirus24"]],"ref":"refs/heads/master","size":1,"head":"14b6439fa2993a9f1377862ce2e51d1d4b1ffb6a","push_id":41652189}