mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
PEP8: fix E123: closing bracket does not match indentation of opening bracket's line
Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
297faf3252
commit
484ce0634b
@ -25,4 +25,4 @@ from _tevent import (
|
||||
backend_list,
|
||||
Context,
|
||||
Signal,
|
||||
)
|
||||
)
|
||||
|
@ -26,7 +26,7 @@ from samba.credentials import (
|
||||
AUTO_USE_KERBEROS,
|
||||
DONT_USE_KERBEROS,
|
||||
MUST_USE_KERBEROS,
|
||||
)
|
||||
)
|
||||
import sys
|
||||
|
||||
|
||||
|
@ -28,7 +28,7 @@ from samba.dcerpc import (
|
||||
drsblobs,
|
||||
drsuapi,
|
||||
misc,
|
||||
)
|
||||
)
|
||||
from samba.common import dsdb_Dn
|
||||
from samba.ndr import ndr_unpack, ndr_pack
|
||||
from collections import Counter
|
||||
|
@ -47,7 +47,7 @@ bitFields["searchflags"] = {
|
||||
'fEXTENDEDLINKTRACKING': 21, # XL
|
||||
'fBASEONLY': 20, # BO
|
||||
'fPARTITIONSECRET': 19, # SE
|
||||
}
|
||||
}
|
||||
|
||||
# ADTS: 2.2.10
|
||||
bitFields["systemflags"] = {
|
||||
@ -64,12 +64,12 @@ bitFields["systemflags"] = {
|
||||
'FLAG_CONFIG_ALLOW_MOVE': 2, # AM
|
||||
'FLAG_CONFIG_ALLOW_RENAME': 1, # AR
|
||||
'FLAG_DISALLOW_DELETE': 0 # DD
|
||||
}
|
||||
}
|
||||
|
||||
# ADTS: 2.2.11
|
||||
bitFields["schemaflagsex"] = {
|
||||
'FLAG_ATTR_IS_CRITICAL': 31
|
||||
}
|
||||
}
|
||||
|
||||
# ADTS: 3.1.1.2.2.2
|
||||
oMObjectClassBER = {
|
||||
|
@ -39,14 +39,14 @@ from samba import (
|
||||
Ldb,
|
||||
werror,
|
||||
WERRORError
|
||||
)
|
||||
)
|
||||
|
||||
from samba.netcmd import (
|
||||
Command,
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def _is_valid_ip(ip_string, address_families=None):
|
||||
|
@ -24,7 +24,7 @@ from samba.netcmd import (
|
||||
Command,
|
||||
CommandError,
|
||||
Option
|
||||
)
|
||||
)
|
||||
from samba.dbchecker import dbcheck
|
||||
|
||||
|
||||
|
@ -30,7 +30,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class cmd_delegation_show(Command):
|
||||
|
@ -36,7 +36,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
Option,
|
||||
SuperCommand,
|
||||
)
|
||||
)
|
||||
from samba.dcerpc import dnsp, dnsserver
|
||||
|
||||
from samba.dnsserver import ARecord, AAAARecord, PTRRecord, CNameRecord, NSRecord, MXRecord, SOARecord, SRVRecord, TXTRecord
|
||||
|
@ -59,7 +59,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option
|
||||
)
|
||||
)
|
||||
from samba.netcmd.fsmo import get_fsmo_roleowner
|
||||
from samba.netcmd.common import netcmd_get_domain_infos_via_cldap
|
||||
from samba.samba3 import Samba3
|
||||
@ -84,14 +84,14 @@ from samba.dsdb import (
|
||||
UF_SERVER_TRUST_ACCOUNT,
|
||||
UF_TRUSTED_FOR_DELEGATION,
|
||||
UF_PARTIAL_SECRETS_ACCOUNT
|
||||
)
|
||||
)
|
||||
|
||||
from samba.provision import (
|
||||
provision,
|
||||
ProvisioningError,
|
||||
DEFAULT_MIN_PWD_LENGTH,
|
||||
setup_path
|
||||
)
|
||||
)
|
||||
|
||||
from samba.provision.common import (
|
||||
FILL_FULL,
|
||||
|
@ -30,7 +30,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
Option,
|
||||
SuperCommand,
|
||||
)
|
||||
)
|
||||
from samba.samdb import SamDB
|
||||
from samba import drs_utils, nttime2string, dsdb
|
||||
from samba.dcerpc import drsuapi, misc
|
||||
|
@ -40,7 +40,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option
|
||||
)
|
||||
)
|
||||
|
||||
class cmd_forest_show(Command):
|
||||
"""Display forest settings.
|
||||
|
@ -28,7 +28,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option,
|
||||
)
|
||||
)
|
||||
from samba.samdb import SamDB
|
||||
|
||||
def get_fsmo_roleowner(samdb, roledn, role):
|
||||
|
@ -32,7 +32,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
Option,
|
||||
SuperCommand,
|
||||
)
|
||||
)
|
||||
from samba.samdb import SamDB
|
||||
from samba import dsdb
|
||||
from samba.dcerpc import security
|
||||
|
@ -35,7 +35,7 @@ from samba.netcmd import (
|
||||
Command,
|
||||
CommandError,
|
||||
Option,
|
||||
)
|
||||
)
|
||||
|
||||
global summary
|
||||
summary = {}
|
||||
|
@ -22,7 +22,7 @@ from samba.net import Net
|
||||
|
||||
from samba.netcmd import (
|
||||
Command,
|
||||
)
|
||||
)
|
||||
|
||||
class cmd_time(Command):
|
||||
"""Retrieve the time on a server.
|
||||
|
@ -35,7 +35,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
Option,
|
||||
SuperCommand,
|
||||
)
|
||||
)
|
||||
from samba.samdb import SamDB
|
||||
from samba import dsdb
|
||||
from operator import attrgetter
|
||||
|
@ -26,7 +26,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option
|
||||
)
|
||||
)
|
||||
|
||||
class cmd_schema_attribute_modify(Command):
|
||||
"""Modify attribute settings in the schema partition.
|
||||
|
@ -26,7 +26,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class cmd_sites_create(Command):
|
||||
|
@ -27,7 +27,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class cmd_spn_list(Command):
|
||||
|
@ -45,7 +45,7 @@ from samba import (
|
||||
gensec,
|
||||
generate_random_password,
|
||||
Ldb,
|
||||
)
|
||||
)
|
||||
from samba.net import Net
|
||||
|
||||
from samba.netcmd import (
|
||||
@ -53,7 +53,7 @@ from samba.netcmd import (
|
||||
CommandError,
|
||||
SuperCommand,
|
||||
Option,
|
||||
)
|
||||
)
|
||||
from samba.compat import text_type
|
||||
|
||||
try:
|
||||
@ -67,7 +67,7 @@ except ImportError as e:
|
||||
"python-gpgme required"
|
||||
|
||||
disabled_virtual_attributes = {
|
||||
}
|
||||
}
|
||||
|
||||
virtual_attributes = {
|
||||
"virtualClearTextUTF8": {
|
||||
@ -79,7 +79,7 @@ virtual_attributes = {
|
||||
"virtualSambaGPG": {
|
||||
"flags": ldb.ATTR_FLAG_FORCE_BASE64_LDIF,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
get_random_bytes_fn = None
|
||||
if get_random_bytes_fn is None:
|
||||
|
@ -60,17 +60,17 @@ from samba import (
|
||||
valid_netbios_name,
|
||||
version,
|
||||
is_heimdal_built,
|
||||
)
|
||||
)
|
||||
from samba.dcerpc import security, misc
|
||||
from samba.dcerpc.misc import (
|
||||
SEC_CHAN_BDC,
|
||||
SEC_CHAN_WKSTA,
|
||||
)
|
||||
)
|
||||
from samba.dsdb import (
|
||||
DS_DOMAIN_FUNCTION_2003,
|
||||
DS_DOMAIN_FUNCTION_2008_R2,
|
||||
ENC_ALL_TYPES,
|
||||
)
|
||||
)
|
||||
from samba.idmap import IDmapDB
|
||||
from samba.ms_display_specifiers import read_ms_ldif
|
||||
from samba.ntacls import setntacl, getntacl, dsacl2fsacl
|
||||
@ -80,7 +80,7 @@ from samba.provision.backend import (
|
||||
FDSBackend,
|
||||
LDBBackend,
|
||||
OpenLDAPBackend,
|
||||
)
|
||||
)
|
||||
from samba.descriptor import (
|
||||
get_empty_descriptor,
|
||||
get_config_descriptor,
|
||||
@ -102,7 +102,7 @@ from samba.descriptor import (
|
||||
get_dns_forest_microsoft_dns_descriptor,
|
||||
get_dns_domain_microsoft_dns_descriptor,
|
||||
get_managed_service_accounts_descriptor,
|
||||
)
|
||||
)
|
||||
from samba.provision.common import (
|
||||
setup_path,
|
||||
setup_add_ldif,
|
||||
@ -116,7 +116,7 @@ from samba.provision.sambadns import (
|
||||
get_dnsadmins_sid,
|
||||
setup_ad_dns,
|
||||
create_dns_update_list
|
||||
)
|
||||
)
|
||||
|
||||
import samba.param
|
||||
import samba.registry
|
||||
@ -2012,7 +2012,7 @@ _ROLES_MAP = {
|
||||
"member server": "member server",
|
||||
"standalone": "standalone server",
|
||||
"standalone server": "standalone server",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def sanitize_server_role(role):
|
||||
|
@ -39,7 +39,7 @@ from samba.dsdb import (
|
||||
DS_DOMAIN_FUNCTION_2008_R2,
|
||||
DS_DOMAIN_FUNCTION_2012_R2,
|
||||
DS_DOMAIN_FUNCTION_2016
|
||||
)
|
||||
)
|
||||
from samba.descriptor import (
|
||||
get_domain_descriptor,
|
||||
get_domain_delete_protected1_descriptor,
|
||||
@ -47,7 +47,7 @@ from samba.descriptor import (
|
||||
get_dns_partition_descriptor,
|
||||
get_dns_forest_microsoft_dns_descriptor,
|
||||
get_dns_domain_microsoft_dns_descriptor
|
||||
)
|
||||
)
|
||||
from samba.provision.common import (
|
||||
setup_path,
|
||||
setup_add_ldif,
|
||||
@ -57,7 +57,7 @@ from samba.provision.common import (
|
||||
FILL_SUBDOMAIN,
|
||||
FILL_NT4SYNC,
|
||||
FILL_DRS,
|
||||
)
|
||||
)
|
||||
|
||||
from samba.samdb import get_default_backend_store
|
||||
|
||||
|
@ -25,7 +25,7 @@ from samba.getopt import (
|
||||
DONT_USE_KERBEROS,
|
||||
MUST_USE_KERBEROS,
|
||||
parse_kerberos_arg,
|
||||
)
|
||||
)
|
||||
import samba.tests
|
||||
|
||||
class KerberosOptionTests(samba.tests.TestCase):
|
||||
|
@ -26,7 +26,7 @@ from samba.provision import (
|
||||
sanitize_server_role,
|
||||
setup_secretsdb,
|
||||
findnss,
|
||||
)
|
||||
)
|
||||
import samba.tests
|
||||
from samba.tests import env_loadparm, TestCase
|
||||
|
||||
|
@ -30,7 +30,7 @@ from samba.dcerpc.netlogon import (
|
||||
netr_Authenticator,
|
||||
netr_WorkstationInformation,
|
||||
MSV1_0_ALLOW_MSVCHAPV2
|
||||
)
|
||||
)
|
||||
from samba.dcerpc.misc import SEC_CHAN_WKSTA
|
||||
from samba.dsdb import (
|
||||
UF_WORKSTATION_TRUST_ACCOUNT,
|
||||
|
@ -27,7 +27,7 @@ import warnings
|
||||
|
||||
from samba.tests import (
|
||||
TestCase,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def get_python_source_files():
|
||||
|
@ -25,7 +25,7 @@ from samba.tests import (
|
||||
SkipTest,
|
||||
TestCase,
|
||||
TestCaseInTempDir,
|
||||
)
|
||||
)
|
||||
import random
|
||||
import shutil
|
||||
import os
|
||||
|
@ -48,7 +48,7 @@ builddirs = {
|
||||
"pass" : ".",
|
||||
"fail" : ".",
|
||||
"retry" : "."
|
||||
}
|
||||
}
|
||||
|
||||
defaulttasks = [ "ctdb",
|
||||
"samba",
|
||||
|
@ -167,7 +167,7 @@ smbtorture4_options = [
|
||||
"--maximum-runtime=$SELFTEST_MAXTIME",
|
||||
"--basedir=$SELFTEST_TMPDIR",
|
||||
"--format=subunit"
|
||||
] + get_env_torture_options()
|
||||
] + get_env_torture_options()
|
||||
|
||||
|
||||
def plansmbtorture4testsuite(name, env, options, target, modname=None):
|
||||
|
@ -25,7 +25,7 @@ from selftesthelpers import *
|
||||
smbtorture4_options.extend([
|
||||
'--option=torture:sharedelay=100000',
|
||||
'--option=torture:writetimeupdatedelay=500000',
|
||||
])
|
||||
])
|
||||
|
||||
def plansmbtorture4testsuite(name, env, options, description=''):
|
||||
if description == '':
|
||||
|
@ -32,7 +32,7 @@ import time
|
||||
|
||||
from ldb import (
|
||||
SCOPE_SUBTREE,
|
||||
)
|
||||
)
|
||||
|
||||
import drs_base, ldb
|
||||
|
||||
|
@ -38,7 +38,7 @@ from ldb import (
|
||||
SCOPE_BASE,
|
||||
Message,
|
||||
FLAG_MOD_REPLACE,
|
||||
)
|
||||
)
|
||||
from samba.compat import cmp_fn
|
||||
|
||||
class DrsBaseTestCase(SambaToolCmdTest):
|
||||
|
@ -40,7 +40,7 @@ from samba.drs_utils import drs_DsBind
|
||||
from ldb import (
|
||||
SCOPE_BASE,
|
||||
SCOPE_SUBTREE,
|
||||
)
|
||||
)
|
||||
|
||||
import drs_base, ldb
|
||||
from samba.dcerpc.drsuapi import *
|
||||
|
@ -39,7 +39,7 @@ from ldb import (
|
||||
Message,
|
||||
FLAG_MOD_ADD,
|
||||
FLAG_MOD_REPLACE
|
||||
)
|
||||
)
|
||||
from samba.dcerpc import drsuapi, misc
|
||||
from samba.drs_utils import drs_DsBind
|
||||
from samba import dsdb
|
||||
|
Loading…
Reference in New Issue
Block a user