summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2015-04-02 11:12:13 +1300
committerAndrew Bartlett <abartlet@samba.org>2015-05-29 11:08:21 +0200
commitfa3c552d3a4ef0f2214af6f5fbbeb618ce5350bd (patch)
tree8715cb2960b503a1e6e995f3182f0f78425b9f29 /source4
parent7a6d0b637a9547aa0b7ae3d794338140fa6322f5 (diff)
downloadsamba-fa3c552d3a4ef0f2214af6f5fbbeb618ce5350bd.tar.gz
KCC: use 75% fewer lines to assign a Boolean to a variable
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/scripting/bin/samba_kcc5
1 files changed, 1 insertions, 4 deletions
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