1
0
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:
Joe Guo
2018-07-30 18:17:15 +12:00
committed by Douglas Bagnall
parent ba0827b560
commit d9c282a9a5
5 changed files with 9 additions and 10 deletions

View File

@ -224,8 +224,7 @@ class gp_log:
for attr in attrs:
func = None
if attr.attrib['name'] in data_maps[ext.attrib['name']]:
func = data_maps[ext.attrib['name']]\
[attr.attrib['name']][-1]
func = data_maps[ext.attrib['name']][attr.attrib['name']][-1]
else:
for dmap in data_maps[ext.attrib['name']].keys():
if data_maps[ext.attrib['name']][dmap][0] == \

View File

@ -45,7 +45,7 @@ class RemotedTestCase(unittest.TestCase):
actions.
"""
def __eq__ (self, other):
def __eq__(self, other):
try:
return self.__description == other.__description
except AttributeError:

View File

@ -84,7 +84,7 @@ def set_auto_replication(dc, allow):
if p.returncode:
if 'LDAP_REFERRAL' not in stderr:
raise RodcRwdcTestException()
print ("ignoring +%s REFERRAL error; assuming %s is RODC" %
print("ignoring +%s REFERRAL error; assuming %s is RODC" %
(opt, dc))

View File

@ -331,7 +331,7 @@ class BaseSortTests(samba.tests.TestCase):
# Let's remind ourselves.
if result_attr == "msTSExpireDate4":
print('-' * 72)
print ("This test fails against Windows with the "
print("This test fails against Windows with the "
"default number of elements (33).")
print("Try with --elements=27 (or similar).")
print('-' * 72)

View File

@ -558,7 +558,7 @@ class VLVTests(samba.tests.TestCase):
skipped += 1
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))
self.assertEquals(expected_results, results)
@ -701,7 +701,7 @@ class VLVTests(samba.tests.TestCase):
except ldb.LdbError as e:
if offset != 0:
raise
print ("offset %d denominator %d raised error "
print("offset %d denominator %d raised error "
"expected error %s\n"
"(offset zero is illegal unless "
"content count is zero)" %
@ -740,7 +740,7 @@ class VLVTests(samba.tests.TestCase):
cstr = str(c)
if cstr.startswith('vlv_resp'):
bits = cstr.rsplit(':')
print ("the answer is %s; we said %d" %
print("the answer is %s; we said %d" %
(bits[2], real_offset))
break
@ -858,7 +858,7 @@ class VLVTests(samba.tests.TestCase):
expression=expression,
base=base,
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)))
sort_control = "server_sort:1:0:%s" % attr
step = max(len(expected_order) // 10, 1)
@ -1010,7 +1010,7 @@ class VLVTests(samba.tests.TestCase):
print(middle)
print(expected_order)
print()
print ("\nattr %s offset %d before %d "
print("\nattr %s offset %d before %d "
"after %d gte %s" %
(attr, offset, before, after, gte))
self.assertEquals(expected_results, results)