comparison mercurial/revset.py @ 13031:3da456d0c885

code style: prefer 'is' and 'is not' tests with singletons
author Martin Geisler <mg@aragost.com>
date Mon, 22 Nov 2010 18:15:58 +0100
parents bdb766e64d35
children 87f248e78173
comparison
equal deleted inserted replaced
13030:8ea51e9e7031 13031:3da456d0c885
713 "list": listset, 713 "list": listset,
714 "func": func, 714 "func": func,
715 } 715 }
716 716
717 def optimize(x, small): 717 def optimize(x, small):
718 if x == None: 718 if x is None:
719 return 0, x 719 return 0, x
720 720
721 smallbonus = 1 721 smallbonus = 1
722 if small: 722 if small:
723 smallbonus = .5 723 smallbonus = .5