]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python: remove all 'from __future__ import print_function'
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 28 Apr 2021 01:02:37 +0000 (01:02 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 28 Apr 2021 03:43:34 +0000 (03:43 +0000)
This made Python 2's print behave like Python 3's print().

In some cases, where we had:

   from __future__ import print_function
   """Intended module documentation..."""

this will have the side effect of making the intended module documentation
work as the actual module documentation (i.e. becoming __doc__), because
it is once again the first statement in the module.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
111 files changed:
auth/credentials/tests/bind.py
lib/tdb/python/tdbdump.py
python/samba/dbchecker.py
python/samba/emulate/traffic.py
python/samba/graph.py
python/samba/join.py
python/samba/kcc/graph_utils.py
python/samba/kcc/kcc_utils.py
python/samba/ms_display_specifiers.py
python/samba/ms_forest_updates_markdown.py
python/samba/ms_schema.py
python/samba/ms_schema_markdown.py
python/samba/netcmd/domain.py
python/samba/netcmd/drs.py
python/samba/netcmd/gpo.py
python/samba/netcmd/sites.py
python/samba/netcmd/visualize.py
python/samba/ntacls.py
python/samba/tests/__init__.py
python/samba/tests/audit_log_base.py
python/samba/tests/audit_log_dsdb.py
python/samba/tests/audit_log_pass_change.py
python/samba/tests/auth_log.py
python/samba/tests/auth_log_base.py
python/samba/tests/auth_log_pass_change.py
python/samba/tests/blackbox/downgradedatabase.py
python/samba/tests/blackbox/ndrdump.py
python/samba/tests/blackbox/smbcacls.py
python/samba/tests/blackbox/smbcacls_basic.py
python/samba/tests/blackbox/smbcacls_dfs_propagate_inherit.py
python/samba/tests/blackbox/smbcacls_propagate_inhertance.py
python/samba/tests/blackbox/smbcontrol.py
python/samba/tests/blackbox/smbcontrol_process.py
python/samba/tests/complex_expressions.py
python/samba/tests/dcerpc/dnsserver.py
python/samba/tests/dcerpc/testrpc.py
python/samba/tests/dns.py
python/samba/tests/dns_base.py
python/samba/tests/dns_forwarder.py
python/samba/tests/dns_forwarder_helpers/server.py
python/samba/tests/graph.py
python/samba/tests/group_audit.py
python/samba/tests/ldap_referrals.py
python/samba/tests/prefork_restart.py
python/samba/tests/process_limits.py
python/samba/tests/samba3sam.py
python/samba/tests/samba_tool/visualize.py
python/samba/tests/samba_tool/visualize_drs.py
python/samba/upgradehelpers.py
python/samba/uptodateness.py
script/attr_count_read
script/autobuild.py
script/compare_cc_results.py
script/show_test_time
script/traffic_learner
script/traffic_replay
selftest/format-subunit-json
selftest/selftesthelpers.py
selftest/subunithelper.py
source3/script/tests/test_wbinfo_sids2xids_int.py
source4/dsdb/samdb/ldb_modules/tests/possibleinferiors.py
source4/dsdb/tests/python/acl.py
source4/dsdb/tests/python/ad_dc_medley_performance.py
source4/dsdb/tests/python/ad_dc_performance.py
source4/dsdb/tests/python/ad_dc_search_performance.py
source4/dsdb/tests/python/attr_from_server.py
source4/dsdb/tests/python/deletetest.py
source4/dsdb/tests/python/dirsync.py
source4/dsdb/tests/python/large_ldap.py
source4/dsdb/tests/python/ldap.py
source4/dsdb/tests/python/ldap_modify_order.py
source4/dsdb/tests/python/ldap_schema.py
source4/dsdb/tests/python/linked_attributes.py
source4/dsdb/tests/python/login_basics.py
source4/dsdb/tests/python/notification.py
source4/dsdb/tests/python/password_lockout.py
source4/dsdb/tests/python/password_lockout_base.py
source4/dsdb/tests/python/passwords.py
source4/dsdb/tests/python/rodc.py
source4/dsdb/tests/python/rodc_rwdc.py
source4/dsdb/tests/python/sam.py
source4/dsdb/tests/python/sec_descriptor.py
source4/dsdb/tests/python/sites.py
source4/dsdb/tests/python/sort.py
source4/dsdb/tests/python/subtree_rename.py
source4/dsdb/tests/python/token_group.py
source4/dsdb/tests/python/tombstone_reanimation.py
source4/dsdb/tests/python/urgent_replication.py
source4/dsdb/tests/python/user_account_control.py
source4/dsdb/tests/python/vlv.py
source4/script/depfilter.py
source4/scripting/bin/gen_hresult.py
source4/scripting/bin/get-descriptors
source4/scripting/bin/rebuildextendeddn
source4/scripting/bin/samba_downgrade_db
source4/scripting/bin/samba_kcc
source4/scripting/devel/addlotscontacts
source4/scripting/devel/crackname
source4/scripting/devel/demodirsync.py
source4/scripting/devel/getncchanges
source4/scripting/devel/pfm_verify.py
source4/scripting/devel/repl_cleartext_pwd.py
source4/scripting/devel/speedtest.py
source4/selftest/tests.py
source4/torture/drs/python/delete_object.py
source4/torture/drs/python/drs_base.py
source4/torture/drs/python/fsmo.py
source4/torture/drs/python/getncchanges.py
source4/torture/drs/python/repl_move.py
source4/torture/drs/python/replica_sync.py
source4/torture/drs/python/samba_tool_drs_showrepl.py

index ad465e949688977c80068fa1e76b40cfb23da11d..a256a930a8a55ca61c45c818aba5db79c9a7699a 100755 (executable)
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # This is unit with tests for LDAP access checks
 
-from __future__ import print_function
 import optparse
 import sys
 import base64
index 306a950d28c867cadac88ff9102ec0f67459e890..afc22d1d0406ba5b5ee3f7494bed2ee0d0e19fb1 100644 (file)
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 # Trivial reimplementation of tdbdump in Python
 
-from __future__ import print_function
 import tdb, sys
 
 if len(sys.argv) < 2:
index d10d765434cb52fbeb432c3eaaf344be7adfa194..b2d029db9f227a7f1a6f2f8a01dcf6b8c80fae3d 100644 (file)
@@ -17,7 +17,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import ldb
 import samba
 import time
index 9b6bdb6af57c003361f887cbdda49334e57da173..87efca61eca574e08f800f370a05d75f08111708 100644 (file)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function, division
+from __future__ import division
 
 import time
 import os
index c8d5f9230d071e0890c6a44aef5826affe914a66..0cfe951d7f718b8932e6900a03c9b67ace22c5f7 100644 (file)
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 from __future__ import division
 from samba import colour
 import sys
index 97745a3901a13393c9611b4e2226bea65379bf04..e7563ef9cb8e1e95557f41a20a54f9700ab010c7 100644 (file)
@@ -16,7 +16,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Joining a domain."""
 
 from samba.auth import system_session
index 65f5ee672074eb230917501538f82c3435eb3e6d..c89d06ad3b7d0327ad3ec109455b30c451b42d16 100644 (file)
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import os
 import itertools
 
index 9b4a894b74321cc95b978528745dc9fabca8b86c..bc2838e39338d4fb837424c124115802010ade64 100644 (file)
@@ -19,7 +19,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
 import sys
 import ldb
 import uuid
index 7488b197a4aeba69883662c32ec1e4b84e9fffca..be9891d74376e141bc405665113df1bfdb0b789c 100644 (file)
@@ -17,7 +17,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
 
 import re
 
index e219211d027891771e2ebd086db84e4c6c1688ac..6d30576d37e346b30c6b9176cfaf3df59dbb7d07 100644 (file)
@@ -20,7 +20,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 """Generate LDIF from Github documentation."""
 
 import re
index 4b5c4a5df83722ccb53e50b6182b92cf7e4fa6b3..b9ca3c61b7209101fee9010e8a9880c9473a55af 100644 (file)
@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 """Generate LDIF from WSPP documentation."""
 
 import re
index ff1afb1a588beae4ac14793be6243b092f40c095..86c4b6944051fa83d546a3d4fafc7e4ac9681077 100644 (file)
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 """Generate LDIF from Github documentation."""
 
 import re
index 3c1e8956982803cc353b471344b3ba1cdc1caf68..841372de254a612598d3b57f7e75a7e48063deda 100644 (file)
@@ -22,7 +22,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 from __future__ import division
 import samba.getopt as options
 import ldb
index 5b439f8e6e1a7b93f4a850eb0cea134b62c0c3db..52620090a640de20733668a90b43d629e3f7370b 100644 (file)
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 
 import samba.getopt as options
 import ldb
index bd2db9b1ab2094b722cdda0eba7788831bffd892..03a04b76074b40e9ec327fb88d8ec3c6db62e90d 100644 (file)
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 import os
 import samba.getopt as options
 import ldb
index b5a2508ee3ad15584f0fc66e4a7ea177814f2dcf..c85acc75813c87f1b9f7b659d9ae0bf2c3c582c6 100644 (file)
@@ -16,7 +16,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 from samba import sites, subnets
 from samba.samdb import SamDB
 import samba.getopt as options
index 45e62afbdc662859fe923b4eb48ca6c3e71fc00a..d81bafe52bac95c49ccd9691ccd5c22d70c7890b 100644 (file)
@@ -17,8 +17,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
-
 import os
 import sys
 from collections import defaultdict
index 1bcb755c95279cfb958d25c035f23097d3787c0d..89e64b7dc5a81fe3193860d8013d3548076985e1 100644 (file)
@@ -15,8 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-
-from __future__ import print_function
 """NT Acls."""
 
 
index a5a8acdcc411c9b2133fdddf245ad70de749111e..7efd7807a22110e2108022233ad10f63255ce10d 100644 (file)
@@ -17,7 +17,6 @@
 #
 
 """Samba Python tests."""
-from __future__ import print_function
 import os
 import tempfile
 import warnings
index f328b615df6fad09145e5f961e9c175438e19248..c791a1a8ca897bb60d053dfa6fdd2ddd2d8f9cae 100644 (file)
@@ -14,8 +14,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-
-from __future__ import print_function
 """Tests for DSDB audit logging.
 """
 
index 5de25502087486fbaa65188bf8cd2f83a143fa17..33884bf5407ec20a756f79fde52bd1420b2f3c7a 100644 (file)
@@ -15,7 +15,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Tests for the SamDb logging of password changes.
 """
 
index 04bb850fa4f1e228678c0de9e7b4b6b4d262fa12..7c3e622de995e5773f4eb79c32417d1e266b2b63 100644 (file)
@@ -15,7 +15,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Tests for the SamDb logging of password changes.
 """
 
index 3c56bc48e7fdf5a71ea8296b2403ef7d9343d0ad..d57d765a83a7551baac3014efe4f0a4cf90e002e 100644 (file)
@@ -15,7 +15,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Tests for the Auth and AuthZ logging.
 """
 import samba.tests
index 09a8df0a4dc887b5fbb24bb965b24dcb6ae4d2f1..58bc817440d9f007f2351ae0f33ac9e3a8d306c2 100644 (file)
@@ -15,7 +15,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Tests for the Auth and AuthZ logging.
 """
 
index ee646722b207879c2bc919bd1a568409767f4d22..f19512deaf86f8ffa0261de1d196212a5bdf259c 100644 (file)
@@ -15,7 +15,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Tests for the Auth and AuthZ logging of password changes.
 """
 
index 3d230609efcce0dac6f684fa848b6d858272da4d..bb45e32bae2291d86c39bc201772d4974d4e1f5c 100644 (file)
@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 from samba.tests import BlackboxTestCase
 import os
 import ldb
index a33229e474097b5ae20ab864ca60e7fd3cbc3a7d..91ac076fd3a761cfd3bc23da771af12745157d9d 100644 (file)
@@ -18,7 +18,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Blackbox tests for ndrdump."""
 
 import os
index 3eca96020051be26d4b8de70c3d261daac6a7ea6..172cc56e73df14c45f035db8fa2f16138cde2457 100644 (file)
@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 from samba.tests import BlackboxTestCase, BlackboxProcessError
 from samba.samba3 import param as s3param
 
index 3562157e701f4af73d09524806a2d3b4cb4c7add..355ce86f42a933cdd486d9c685f7aa336e784478 100644 (file)
@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 from samba.tests.blackbox.smbcacls import SmbCaclsBlockboxTestBase
 from samba.tests import BlackboxProcessError
 
index 1df6014917632b6aa3c61c623a17c3390214a2ed..36c29c8cccac6c460a8e0c2b2d7d05b00e81264f 100644 (file)
@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 from samba.tests import BlackboxProcessError
 import os
 from samba.tests.blackbox.smbcacls_propagate_inhertance import InheritanceSmbCaclsTests
index d4577805f4ff8524257f9f48e36cd279cdd8176b..ed8455a6bf8ac6cc3931999e306fd22da7411ea4 100644 (file)
@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 from samba.tests.blackbox.smbcacls import SmbCaclsBlockboxTestBase
 from samba.tests import BlackboxProcessError
 import os
index e923efb71a5a29c098f146cce743e820dc0c4d0f..cfd9d4d77e2571b83f9df52df82c8f87410b2883 100644 (file)
@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 from samba.tests import BlackboxTestCase, BlackboxProcessError
 from samba.messaging import Messaging
 
index b4ccc4c455c0f260b78dc872765049b3f4424a76..bff2e06adba8e136f54c5771352c28f60da04d16 100644 (file)
@@ -19,7 +19,6 @@
 # in the preforkrestartdc test environment to prevent them impacting other
 # tests.
 #
-from __future__ import print_function
 import time
 from samba.tests import BlackboxTestCase, BlackboxProcessError
 from samba.messaging import Messaging
index 5657bf6b2768c617c7dc0d81062f9b7f740d9088..25be67c74d4e6e25438930eccdabb89d582606e3 100644 (file)
@@ -16,7 +16,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import optparse
 import samba
 import samba.getopt as options
index 5f7aa378575189e99f5e6257a906dd10a84b6b45..340bb4543249f4d6042b90685724fa4562bb9d45 100644 (file)
@@ -15,7 +15,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Tests for samba.dcerpc.dnsserver"""
 
 import os
index d4fc39e51f83f67a0e547b89085cef94d439f21e..fcc3b0477dc3d0c37ae163e0f9ea9c41cd54a13e 100644 (file)
@@ -14,7 +14,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 import sys
 
 sys.path.insert(0, "bin/python")
index bb25b09d9f695456598eabcd403194f8e21e4f93..1a05634725a5741b2fade34afc9eb8bef0a56ef3 100644 (file)
@@ -15,8 +15,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
-
 from samba import dsdb
 from samba.ndr import ndr_unpack, ndr_pack
 from samba.samdb import SamDB
index 5c0d6201b06364bfd91b106a878ada4959add3fe..e522120b932b073ec3ddf5b391972f6ca033fa2b 100644 (file)
@@ -16,7 +16,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 from samba.tests import TestCaseInTempDir
 from samba.dcerpc import dns, dnsp
 from samba import gensec, tests
index 403b9623a73999b838339fd038abfcf17f47a653..52511033abd6f7cbb055f6832d3bb448c2e748f7 100644 (file)
@@ -15,7 +15,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import os
 import sys
 import random
index 803372f73c1e135b28fd9d6310a253faa1e0f338..5637b42a37e8ab84194b208f7d79eb9f9034668b 100644 (file)
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 # Based on the EchoServer example from python docs
-from __future__ import print_function
+
 import socketserver as SocketServer
 import sys
 from threading import Timer
index efbe75955a4fcdc8443ab81a5839e6e298c0df30..be1bf58e3c0fe84065ef05cfbc407f15a7fffd60 100644 (file)
@@ -20,8 +20,6 @@
 
 """Tests for samba.graph"""
 
-from __future__ import print_function
-
 import samba
 import samba.tests
 from samba import graph
index 8af613405845529e40940b89f2aee8be5a2fce21..a032a8ecd70fd03bbb5f9e861844bb53074ad325 100644 (file)
@@ -14,8 +14,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-
-from __future__ import print_function
 """Tests for the SamDb logging of password changes.
 """
 
index 86a39d4e60225588910d762e064c9c41aa3d64ac..b3f980e0301b4339fbe834b7d6dac296bf0006a1 100644 (file)
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import optparse
 import os
 import sys
index 2acbcc9befca5e023b9ff49b92449bc6802f1d32..7d762196b58807020067790acb8bc803df045a72 100644 (file)
@@ -15,8 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-
-from __future__ import print_function
 """Tests process restarting in the pre-fork process model.
    NOTE: As this test kills samba processes it won't play nicely with other
          tests, so needs to be run in it's own environment.
index b62906e294f53af0585834c7ec7e4b0b0bc1c3b8..b1997acad67dbfbb79bbaad10e0c474c61b2fd29 100644 (file)
@@ -15,8 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-
-from __future__ import print_function
 """Tests limits on processes forked by fork on accept in the standard process
    model.
    NOTE: This test runs in an environment with an artificially low setting for
index 17bb4a7b7bc2cd269c041b06206fa349cc2e3011..01d274da7be0e8873765ce37e316e530d2dc95f9 100644 (file)
@@ -17,8 +17,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-
-from __future__ import print_function
 """Tests for the samba3sam LDB module, which maps Samba3 LDAP to AD LDAP."""
 
 import os
index bc1c91c9b5605959dfbbfbcaebcf577ea1ffcbb7..03a29ffc1d092ef9966aaa10c71046b4b93bb2bb 100644 (file)
@@ -24,7 +24,6 @@ We don't test samba-tool visualize reps here because repsTo and
 repsFrom are not replicated, and there are actual remote servers to
 query.
 """
-from __future__ import print_function
 import samba
 import os
 import tempfile
index 3eda02783f62d9edfb75425c650f1e5d2de59d21..9a2ca25039b7d7e0b62a2134f426298005ca68b6 100644 (file)
@@ -24,7 +24,6 @@ others we try to grasp control of replication and make more specific
 assertions.
 """
 
-from __future__ import print_function
 import os
 import re
 import json
index 69f6e3675e8e1f67586db1696633a08e06bd2eac..d012cea5bd2ba0280678d6419447b44ba6c0b0bd 100644 (file)
@@ -19,7 +19,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 from __future__ import division
 """Helpers used for upgrading between different database formats."""
 
index 7914c47b8452713dc4f9edbd4589851064b8c70e..db1ba53885bcbd01cda6434f3b1609f84d3ee7c6 100644 (file)
@@ -16,7 +16,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
 
 import sys
 import time
index 4338b6bee1044bf523a79f15c00c04858ee63f8c..eecdf57707b455de62b83af37497d67c1426766e 100755 (executable)
@@ -16,7 +16,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import sys
 import argparse
 import struct
index d5aef614a42801831cbde9a859683389e28752a6..a340160f20f52a5aed82913b7769f55b01ea7428 100755 (executable)
@@ -3,7 +3,6 @@
 # Copyright Andrew Tridgell 2010
 # released under GNU GPL v3 or later
 
-from __future__ import print_function
 from subprocess import call, check_call, check_output, Popen, PIPE, CalledProcessError
 import os
 import tarfile
index cc16751cf6e95f9dd24c2d0edab62df448f3b0b2..9bf24adffecd3b9014f06cb50564d25010b3ba41 100755 (executable)
@@ -6,7 +6,6 @@ bin/c4che/.
 
 USAGE: compare_cc_results.py CONFIG_1 CONFIG_2 [CONFIG_3 [CONFIG_4 ...]]
 """
-from __future__ import print_function
 import sys
 import difflib
 
index 5a84f19787c3dfa56f11301a90cd3e8355ea3c8b..70d29d72b5c45eb0dd93e0a7f2f1b0250b913443 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/python
-from __future__ import print_function
 import optparse
 import os.path
 import subprocess
index cad1a64a1331ce079960daa235d5eb971d117ed8..303956e7ab4aeacc86d11fb592e810402d0227e4 100755 (executable)
@@ -16,7 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 import sys
 import argparse
 
index d29f0a9839c05fd000a1d1c33e6f715c7e7981f4..e785e31babfac1a0e0de4566cdae14b3f4dbb93b 100755 (executable)
@@ -16,7 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 import sys
 import os
 import optparse
index a3ece648e3a7d78524f40ddd60a92f27bc432f7f..d9d912cd29428c7a6766e2d2c0052ef5afa4e3d9 100644 (file)
@@ -2,7 +2,6 @@
 # Copyright (C) 2008-2010 Jelmer Vernooij <jelmer@samba.org>
 # Copyright (C) 2016 Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
 # Published under the GNU GPL, v3 or later
-from __future__ import print_function
 import optparse
 import os
 import signal
index 23f1b9ccd6866ebb181e17d3eaf019ecb063ab7a..3358374cbcac1b990c3d2f3b546e623552fec49c 100644 (file)
@@ -17,7 +17,6 @@
 # by the name of the test, the environment it needs and the command to run, all
 # three separated by newlines. All other lines in the output are considered
 # comments.
-from __future__ import print_function
 
 import os
 import subprocess
index fd356d92156ad8a8adae6157474776c55a2e631d..61e3289080eba1a1fa40f61e8d48e6efad297ef8 100644 (file)
@@ -15,7 +15,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 __all__ = ['parse_results']
 
 import datetime
index 748141949ed2baf5a6d45b0a43da37d89b2ff921..759edbccd97adcf8269d417cff7f43dcaa5ab744 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 
-from __future__ import print_function
 import sys
 import os
 import subprocess
index ab13b14b3a8cb395cf4dc620fd7b7295d89f0042..d28be8f70d32bf62340a11671ea4912b9099d5e8 100755 (executable)
@@ -17,7 +17,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 """Tests the possibleInferiors generation in the schema_fsmo ldb module"""
 
 import optparse
index a859196ee9400e4f7990eeda861407adb5206825..2cb6303dce3beb1517468ab5055afa07509f9670 100755 (executable)
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # This is unit with tests for LDAP access checks
 
-from __future__ import print_function
 import optparse
 import sys
 import base64
index e0f0e19651a9eecf94624f933704674437d75ff4..ebd631366398657fcaf900f036361160fcbf8ff4 100644 (file)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
-from __future__ import print_function
 
 import optparse
 import sys
index 595ea68140961dfe3bd84247a3b8f42bbe767112..6ff84e4389e5c85efe3af9bc50a700973cf7b884 100644 (file)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
-from __future__ import print_function
 
 import optparse
 import sys
index 2e36218fc48e5597b801796843f8b25ecd920fee..27f6cb3545c9aba389d65d419476e46ca38944d7 100644 (file)
@@ -1,6 +1,5 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
-from __future__ import print_function
 
 import optparse
 import sys
index 1a0112d4ed5cd4623a59cd820f1870966a8488eb..aca356bd733672e0caca003dbc844b1417b470c6 100644 (file)
@@ -22,7 +22,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 import optparse
 import sys
 sys.path.insert(0, "bin/python")
index 612396002d64d11ba4842696f14c5a3c8e1a332b..7375f26e895fb70d44ceb3162ab30930dd16fd0c 100755 (executable)
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
-from __future__ import print_function
 import optparse
 import sys
 import os
index 0ed0c7c9787fee47b4dec9ab827ebfe4dd1bee7b..1ac719e4332d90ad72e35425b60c4bb5b85fbf1a 100755 (executable)
@@ -18,7 +18,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-from __future__ import print_function
 import optparse
 import sys
 sys.path.insert(0, "bin/python")
index cce9d41862fdb6f9ad0ecf7b468c3841f0f16141..0bf73f988d83e8445cf06143bdd79de41d0403a4 100644 (file)
@@ -19,7 +19,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import optparse
 import sys
 import os
index 9c836c04267fce8296901187b218485e1a909a36..0c90a0bbd7937a4b1da83ca98470a3dba13b2a1f 100755 (executable)
@@ -17,7 +17,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import optparse
 import sys
 import time
index 8b3f6c7be577f0fcc46c18fe4d197d7ccb3b3b1e..54f89597eabd1d0b1c84701cacf6a03460fb73d6 100644 (file)
@@ -16,7 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import optparse
 import sys
 import os
index 75115e1e2519c1a16dd3084b249680248de99610..b08aa7f6859cc32d5397c89ecf6d368bdc80f1a0 100755 (executable)
@@ -19,7 +19,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-from __future__ import print_function
 import optparse
 import sys
 import time
index 533fa9437365e6fc18a51a88d891f85b21a6fb5b..e66a1fdd0d740bf53009c1ea01dfa1b9d6dec529 100644 (file)
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # Originally based on ./sam.py
-from __future__ import print_function
 import optparse
 import sys
 import os
index d265441826de5b05fd9ae6daf3b98bb8ad9ca8a8..09f8ea36ec851154da9833004c8766fb4d4145fe 100755 (executable)
@@ -7,7 +7,6 @@
 #
 # Copyright Andrew Bartlett 2018
 #
-from __future__ import print_function
 import optparse
 import sys
 from samba.tests.subunitrun import TestProgram, SubunitOptions
index 9d463eee25871d37af2f7c412a7b47661c8c582c..b9e10324de5bb1410b2886e875c8b68195c93ecc 100755 (executable)
@@ -16,7 +16,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import optparse
 import sys
 import os
index 445944862b8a6f253f2aae61209a012d3a7690f2..959c64898574bae2a233b7e7c4dd2af239c5ea08 100755 (executable)
@@ -7,7 +7,6 @@
 # Copyright Stefan Metzmacher 2014
 #
 
-from __future__ import print_function
 import optparse
 import sys
 import base64
index 0f9617da1e6f9b1d880f3c281717c46a4032b4a2..ad2a2ad16027f05c9d16c8903bf4e913d05cff37 100644 (file)
@@ -1,4 +1,3 @@
-from __future__ import print_function
 import samba
 
 from samba.auth import system_session
index 5025962e6ea324ffeed61cd7e79b45aa531edc14..27107f3d130b1ae037381daccbeba49fba489c4a 100755 (executable)
@@ -8,7 +8,6 @@
 # secured enough (SASL with a minimum of 128 Bit encryption) - consider
 # MS-ADTS 3.1.1.3.1.5
 
-from __future__ import print_function
 import optparse
 import sys
 import base64
index ec2c55d7957ede86d777a2173ab740d571c7892d..1a4b0f9b7ee1f79a68631ebe78fb35b01b26c5c4 100755 (executable)
@@ -1,7 +1,6 @@
 #!/usr/bin/python
 # -*- coding: utf-8 -*-
 
-from __future__ import print_function
 import optparse
 import sys
 import os
index a09d16a01632a51e2cb361e29e2c8207622a8a01..d628c609d8c16e96c7596c777425e292ac444fba 100644 (file)
@@ -1,6 +1,5 @@
 #!/usr/bin/python
 # -*- coding: utf-8 -*-
-from __future__ import print_function
 """Test communication of credentials etc, between an RODC and a RWDC.
 
 How does it work when the password is changed on the RWDC?
index 41c348bce5f150d0bc324280fdc8867a5584f944..1417505c4f52ad66bb505b25d16dda65d12be586 100755 (executable)
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # This is a port of the original in testprogs/ejs/ldap.js
 
-from __future__ import print_function
 import optparse
 import sys
 import os
index 8edf5e092d799135acd47c7899e970400203b565..b67bf33b5f70be179d5ea0416db453e54ab6ed47 100755 (executable)
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
-from __future__ import print_function
 import optparse
 import sys
 import os
index 783b896caf92fdd00635307ff41fbc25a6c763da..f6efdaebc054ef3e76b0dfa854d452aefb046619 100755 (executable)
@@ -16,7 +16,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
 
 import optparse
 import sys
index 51d797af38d403c388ed26df2411685c413eeacf..a4d7b72f744822f58ddbf09d90afeb18f018ce8b 100644 (file)
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # Originally based on ./sam.py
-from __future__ import print_function
 from unicodedata import normalize
 import locale
 locale.setlocale(locale.LC_ALL, ('en_US', 'UTF-8'))
index c4f6bc7a160bd88b0f4c541009de9fcf2ab25b73..df85d05eb4bda5900d29118b721cd60af5261eda 100644 (file)
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # Originally based on ./sam.py
-from __future__ import print_function
 import optparse
 import sys
 import os
index 7e314627a32da0fdbb3819b148a204f196c8e480..3a9e535a0857b74c75dba5104a4623d2322f0e8c 100755 (executable)
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # test tokengroups attribute against internal token calculation
 
-from __future__ import print_function
 import optparse
 import sys
 import os
index ad2ef80c09e6cf66c369cd4c64f4f3f926d90e9b..453e378332b42d1cbe4202f088c7cc9c586f26f0 100755 (executable)
@@ -18,7 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from __future__ import print_function
 import sys
 import unittest
 
index 6ec698d0bbbc631027faf3cdf4c4e4d815e9eb95..485b1fd8df5aba1be1094b343df0834cb15fce20 100755 (executable)
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
-from __future__ import print_function
 import optparse
 import sys
 sys.path.insert(0, "bin/python")
index 2d62d4c32b19e9bae10a9b01dc5a83f74072a426..02805ff3adcf0d973c974e48d4179d50d0071c85 100755 (executable)
@@ -8,7 +8,6 @@
 # Licenced under the GPLv3
 #
 
-from __future__ import print_function
 import optparse
 import sys
 import unittest
index c7578c6f04bfad936131e31267a954ac39ed1ffe..3d5782b02ec42559be082d6c0d367a1db3d20844 100644 (file)
@@ -1,7 +1,6 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # Originally based on ./sam.py
-from __future__ import print_function
 import optparse
 import sys
 import os
index 1f741f746e08f4dcafdb5d25452e1f7a2c8e138d..ee2ce9d706a10b768c63e99080016f0aed189754 100755 (executable)
@@ -6,7 +6,6 @@
 
 # Command line stuff
 
-from __future__ import print_function
 import sys
 import re
 
index 5fbf419a547acddfbe8b5ffef3eab5dc5292e3a5..9bde42911f57e6f2e3dc7e174e84379da3345b73 100755 (executable)
@@ -22,7 +22,6 @@
 #
 
 
-from __future__ import print_function
 import sys, os.path, io, string
 
 # parsed error data
index bed01e7ceb39daf104e8ebcd279247ae4cb07afc..f9b9cd7d17030005b447ab1cd626f74a36f4abd4 100755 (executable)
@@ -26,7 +26,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 
 import optparse
 import sys
index 3c0e46d4fefd1b0f72d8d498916a716ab63f458f..f5137f979d6eb2cc8e55455abab9372ee4d66299 100755 (executable)
@@ -21,7 +21,6 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-from __future__ import print_function
 import optparse
 import os
 import sys
index 87a989bfd6a2e0304eb1a4cf4d80939ab2f0d0b1..43a803c4e827c4ea129509360adfd25419634e8c 100755 (executable)
@@ -19,7 +19,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
 import optparse
 import sys
 
index 122a5ed2c5e2c02f32588b28182b6a604d5bd5a7..67d801ea91774ab468c7ac1068c3acac142c043d 100755 (executable)
@@ -20,7 +20,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
 
 import os
 import sys
index aff14092021c8c596028095cba03a95f8a88d78c..8e6b27802ced64f592c780e627cc06493d34f902 100644 (file)
@@ -15,7 +15,6 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
 
 __docformat__ = "restructuredText"
 
index 4dbe47227aa8bb5a84572702c19d6264cd898169..021adfa05151ea3bf86864171711d385e5943782 100755 (executable)
@@ -3,7 +3,6 @@
 # Copyright Matthieu Patou <mat@matws.net> 2011
 # script to call a DRSUAPI crackname
 # this is useful for plugfest testing and replication debug
-from __future__ import print_function
 import sys
 from optparse import OptionParser
 
index e615c0fb865cdd864dfec3e1014e51a6dec1c646..ec548ae2147f6da755eb4641a26509d2dbf09875 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/python
 
-
-from __future__ import print_function
 import optparse
 import sys
 import base64
index 3c132f5f0d3d4b37de1361c9cb0a38a1de3b520e..a1a4d14d6212aa119175b01ee3915f5810e5626f 100755 (executable)
@@ -2,7 +2,6 @@
 
 # script to call a DRS GetNCChanges from the command line
 # this is useful for plugfest testing
-from __future__ import print_function
 import sys
 from optparse import OptionParser
 
index 496a7a97d4df94042c9b124b2fc8369dc042cdaf..2fe2aca65bc454df1341cf771ed8ffb5f40f0f7e 100755 (executable)
@@ -20,7 +20,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import os
 import sys
 from optparse import OptionParser
index 6fc1e1625916dca7e2449fa805cd090455df1883..64392919f5b18f1371ac2107f6e60f3041a50503 100755 (executable)
@@ -36,7 +36,6 @@
 #  $
 #
 
-from __future__ import print_function
 import sys
 
 # Find right direction when running from source tree
index 8a6acfd0a72588253a9abc3be154d65708382069..8c044c47925a176ece74d08c1a6a2b6ad01f03ba 100755 (executable)
@@ -22,7 +22,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import optparse
 import sys
 import time
index fa0f004342420cd2ed7a619a33167428178ee8ab..cdaced0e1c1dba202ad89269f58b40008a16ad14 100755 (executable)
@@ -17,7 +17,6 @@
 # by the name of the test, the environment it needs and the command to run, all
 # three separated by newlines. All other lines in the output are considered
 # comments.
-from __future__ import print_function
 
 import os
 import sys
index 395877ad76ae67c439df1eb75f02bc9a455c74c2..3db0d0b51f3823ef89ea2f405a2a785bed141006 100644 (file)
@@ -26,7 +26,6 @@
 #  PYTHONPATH="$PYTHONPATH:$samba4srcdir/torture/drs/python" $SUBUNITRUN delete_object -U"$DOMAIN/$DC_USERNAME"%"$DC_PASSWORD"
 #
 
-from __future__ import print_function
 import time
 
 
index 0046ae235f1a6ebc03eb32946cf42c9d7b50d562..eea5a7ef9074cfa9fd0202a33fac5dfd78508de9 100644 (file)
@@ -20,7 +20,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-from __future__ import print_function
 import sys
 import time
 import os
index b548fbca26ab20f64ceac612df1629b91c5016c9..3562b4522f73348ea0a5e4af093e343ecb992657 100644 (file)
@@ -25,7 +25,6 @@
 #  PYTHONPATH="$PYTHONPATH:$samba4srcdir/torture/drs/python" $SUBUNITRUN fsmo -U"$DOMAIN/$DC_USERNAME"%"$DC_PASSWORD"
 #
 
-from __future__ import print_function
 import sys
 import time
 import os
index 7bb6e4d14aa20afef9121e37ae596f0ea9325e42..a35e86088dccb4d05b7669c156cdc43a34fc07e5 100644 (file)
@@ -28,7 +28,6 @@
 #       getncchanges -U"$DOMAIN/$DC_USERNAME"%"$DC_PASSWORD"
 #
 
-from __future__ import print_function
 import drs_base
 import samba.tests
 import ldb
index 31dec3849a7754e693d719998921682a6cd4aef0..19389cdb8af642deaa57475f93e32f595af40245 100644 (file)
@@ -27,7 +27,6 @@
 #  PYTHONPATH="$PYTHONPATH:$samba4srcdir/torture/drs/python" $SUBUNITRUN repl_move -U"$DOMAIN/$DC_USERNAME"%"$DC_PASSWORD"
 #
 
-from __future__ import print_function
 import time
 import uuid
 import samba.tests
index ad03d1b061e5023cda7fc45f264333fd1691fc4e..b078e90cb3e96760cae2a89388f70967cf276283 100644 (file)
@@ -27,7 +27,6 @@
 #  PYTHONPATH="$PYTHONPATH:$samba4srcdir/torture/drs/python" $SUBUNITRUN replica_sync -U"$DOMAIN/$DC_USERNAME"%"$DC_PASSWORD"
 #
 
-from __future__ import print_function
 import drs_base
 import samba.tests
 import time
index e77f15d2b5415714ace5a111104b66c9d18f4e6c..707b1fb3a7577f40590d688ab586c8358b5feec4 100644 (file)
@@ -17,7 +17,6 @@
 #
 
 """Blackbox tests for samba-tool drs showrepl."""
-from __future__ import print_function
 import samba.tests
 import drs_base
 from samba.dcerpc import drsuapi