Simplify and correct comparisons with None.

This commit is contained in:
Blair Zajac
2013-02-09 15:49:54 -08:00
committed by Michael DeHaan
parent 2172201795
commit fa8e653011
10 changed files with 16 additions and 16 deletions

View File

@@ -89,7 +89,7 @@ def has_local_mods(dest):
os.chdir(dest)
cmd = "git status -s"
lines = os.popen(cmd).read().splitlines()
lines = filter(lambda c: re.search('^\\?\\?.*$',c) == None,lines)
lines = filter(lambda c: not re.search('^\\?\\?.*$', c), lines)
return len(lines) > 0
def reset(module,dest,force):