mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
PEP8: fix E211: whitespace before '('
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:
@ -224,8 +224,7 @@ class gp_log:
|
|||||||
for attr in attrs:
|
for attr in attrs:
|
||||||
func = None
|
func = None
|
||||||
if attr.attrib['name'] in data_maps[ext.attrib['name']]:
|
if attr.attrib['name'] in data_maps[ext.attrib['name']]:
|
||||||
func = data_maps[ext.attrib['name']]\
|
func = data_maps[ext.attrib['name']][attr.attrib['name']][-1]
|
||||||
[attr.attrib['name']][-1]
|
|
||||||
else:
|
else:
|
||||||
for dmap in data_maps[ext.attrib['name']].keys():
|
for dmap in data_maps[ext.attrib['name']].keys():
|
||||||
if data_maps[ext.attrib['name']][dmap][0] == \
|
if data_maps[ext.attrib['name']][dmap][0] == \
|
||||||
|
@ -45,7 +45,7 @@ class RemotedTestCase(unittest.TestCase):
|
|||||||
actions.
|
actions.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __eq__ (self, other):
|
def __eq__(self, other):
|
||||||
try:
|
try:
|
||||||
return self.__description == other.__description
|
return self.__description == other.__description
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
@ -84,7 +84,7 @@ def set_auto_replication(dc, allow):
|
|||||||
if p.returncode:
|
if p.returncode:
|
||||||
if 'LDAP_REFERRAL' not in stderr:
|
if 'LDAP_REFERRAL' not in stderr:
|
||||||
raise RodcRwdcTestException()
|
raise RodcRwdcTestException()
|
||||||
print ("ignoring +%s REFERRAL error; assuming %s is RODC" %
|
print("ignoring +%s REFERRAL error; assuming %s is RODC" %
|
||||||
(opt, dc))
|
(opt, dc))
|
||||||
|
|
||||||
|
|
||||||
|
@ -331,7 +331,7 @@ class BaseSortTests(samba.tests.TestCase):
|
|||||||
# Let's remind ourselves.
|
# Let's remind ourselves.
|
||||||
if result_attr == "msTSExpireDate4":
|
if result_attr == "msTSExpireDate4":
|
||||||
print('-' * 72)
|
print('-' * 72)
|
||||||
print ("This test fails against Windows with the "
|
print("This test fails against Windows with the "
|
||||||
"default number of elements (33).")
|
"default number of elements (33).")
|
||||||
print("Try with --elements=27 (or similar).")
|
print("Try with --elements=27 (or similar).")
|
||||||
print('-' * 72)
|
print('-' * 72)
|
||||||
|
@ -558,7 +558,7 @@ class VLVTests(samba.tests.TestCase):
|
|||||||
skipped += 1
|
skipped += 1
|
||||||
|
|
||||||
if expected_results != results:
|
if expected_results != results:
|
||||||
print ("attr %s before %d after %d offset %d" %
|
print("attr %s before %d after %d offset %d" %
|
||||||
(attr, before, after, offset))
|
(attr, before, after, offset))
|
||||||
self.assertEquals(expected_results, results)
|
self.assertEquals(expected_results, results)
|
||||||
|
|
||||||
@ -701,7 +701,7 @@ class VLVTests(samba.tests.TestCase):
|
|||||||
except ldb.LdbError as e:
|
except ldb.LdbError as e:
|
||||||
if offset != 0:
|
if offset != 0:
|
||||||
raise
|
raise
|
||||||
print ("offset %d denominator %d raised error "
|
print("offset %d denominator %d raised error "
|
||||||
"expected error %s\n"
|
"expected error %s\n"
|
||||||
"(offset zero is illegal unless "
|
"(offset zero is illegal unless "
|
||||||
"content count is zero)" %
|
"content count is zero)" %
|
||||||
@ -740,7 +740,7 @@ class VLVTests(samba.tests.TestCase):
|
|||||||
cstr = str(c)
|
cstr = str(c)
|
||||||
if cstr.startswith('vlv_resp'):
|
if cstr.startswith('vlv_resp'):
|
||||||
bits = cstr.rsplit(':')
|
bits = cstr.rsplit(':')
|
||||||
print ("the answer is %s; we said %d" %
|
print("the answer is %s; we said %d" %
|
||||||
(bits[2], real_offset))
|
(bits[2], real_offset))
|
||||||
break
|
break
|
||||||
|
|
||||||
@ -858,7 +858,7 @@ class VLVTests(samba.tests.TestCase):
|
|||||||
expression=expression,
|
expression=expression,
|
||||||
base=base,
|
base=base,
|
||||||
scope=ldb.SCOPE_ONELEVEL)
|
scope=ldb.SCOPE_ONELEVEL)
|
||||||
print ("searching for attr %s amongst %d deleted objects" %
|
print("searching for attr %s amongst %d deleted objects" %
|
||||||
(attr, len(expected_order)))
|
(attr, len(expected_order)))
|
||||||
sort_control = "server_sort:1:0:%s" % attr
|
sort_control = "server_sort:1:0:%s" % attr
|
||||||
step = max(len(expected_order) // 10, 1)
|
step = max(len(expected_order) // 10, 1)
|
||||||
@ -1010,7 +1010,7 @@ class VLVTests(samba.tests.TestCase):
|
|||||||
print(middle)
|
print(middle)
|
||||||
print(expected_order)
|
print(expected_order)
|
||||||
print()
|
print()
|
||||||
print ("\nattr %s offset %d before %d "
|
print("\nattr %s offset %d before %d "
|
||||||
"after %d gte %s" %
|
"after %d gte %s" %
|
||||||
(attr, offset, before, after, gte))
|
(attr, offset, before, after, gte))
|
||||||
self.assertEquals(expected_results, results)
|
self.assertEquals(expected_results, results)
|
||||||
|
Reference in New Issue
Block a user