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)
commitaecb2b779b88c13784b7c2691ae08da716d65ab2
treef9220ac9a4719396a348eb85b5f21cd7a57ccfd5
parenta4cce28bfa3c1d0cd7e05c4628f6931eef8ce69f
python: remove all 'from __future__ import print_function'

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