From: Joseph Sutton Date: Thu, 5 May 2022 09:23:10 +0000 (+1200) Subject: source4/scripting/bin: Remove unnecessary global declarations X-Git-Tag: talloc-2.3.4~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=139f00c3941f7dbbd646f878157e75aceeb445e0;p=thirdparty%2Fsamba.git source4/scripting/bin: Remove unnecessary global declarations Signed-off-by: Joseph Sutton Reviewed-by: Andreas Schneider --- diff --git a/source4/scripting/bin/renamedc b/source4/scripting/bin/renamedc index 90618810039..e5e8a2c16c7 100755 --- a/source4/scripting/bin/renamedc +++ b/source4/scripting/bin/renamedc @@ -59,7 +59,6 @@ creds.set_kerberos_state(DONT_USE_KERBEROS) if __name__ == '__main__': - global defSDmodified defSDmodified = False # 1) First get files paths paths = get_paths(param, smbconf=smbconf) diff --git a/source4/scripting/bin/samba_upgradeprovision b/source4/scripting/bin/samba_upgradeprovision index c918462083d..3d072bc64fe 100755 --- a/source4/scripting/bin/samba_upgradeprovision +++ b/source4/scripting/bin/samba_upgradeprovision @@ -1571,7 +1571,6 @@ def sync_calculated_attributes(samdb, names): if __name__ == '__main__': - global defSDmodified defSDmodified = False # From here start the big steps of the program