From: Douglas Bagnall Date: Wed, 1 Apr 2015 22:12:13 +0000 (+1300) Subject: KCC: use 75% fewer lines to assign a Boolean to a variable X-Git-Tag: tevent-0.9.25~262 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa3c552d3a4ef0f2214af6f5fbbeb618ce5350bd;p=thirdparty%2Fsamba.git KCC: use 75% fewer lines to assign a Boolean to a variable Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- diff --git a/source4/scripting/bin/samba_kcc b/source4/scripting/bin/samba_kcc index f39bee00bc8..55f830d926b 100755 --- a/source4/scripting/bin/samba_kcc +++ b/source4/scripting/bin/samba_kcc @@ -1669,10 +1669,7 @@ class KCC(object): # LET partialReplicaOkay be TRUE if and only if # localSiteVertex.Color = COLOR.BLACK - if my_vertex.is_black(): - partial_ok = True - else: - partial_ok = False + partial_ok = my_vertex.is_black() # Utilize the IP transport only for now transport = self.ip_transport