PEP8: fix E128: continuation line under-indented for visual indent
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 3 Sep 2018 13:05:52 +0000 (01:05 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Sep 2018 13:50:17 +0000 (15:50 +0200)
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Sep  6 15:50:17 CEST 2018 on sn-devel-144

lib/ldb/tests/python/api.py
python/samba/netcmd/fsmo.py
python/samba/netcmd/gpo.py
python/samba/tests/samba_tool/gpo.py
source3/script/tests/test_smbcquota.py
source4/dsdb/tests/python/confidential_attr.py
source4/torture/drs/python/drs_base.py
wintest/test-s4-howto.py

index e304bb2d04336d2d84dcda478c5d5320fa533d59..37e8f4da6566046b8a9dd3b792b465046b218168 100755 (executable)
@@ -1327,7 +1327,7 @@ class SearchTests(LdbBaseTest):
 
         try:
             res11 = self.l.search(base="DC=SAMBA,DCXXXX",
-                              scope=ldb.SCOPE_ONELEVEL)
+                                  scope=ldb.SCOPE_ONELEVEL)
             self.fail("Should have failed with ERR_INVALID_DN_SYNTAX")
         except ldb.LdbError as err:
             enum = err.args[0]
index 0c4ee7abf27789c365178d7e608265a38eac94c3..b916f9c97b825c68dd618fb9ba251928b541bfeb 100644 (file)
@@ -120,8 +120,8 @@ def transfer_dns_role(outf, sambaopts, credopts, role, samdb):
         m = ldb.Message()
         m.dn = ldb.Dn(samdb, role_object)
         m["fSMORoleOwner"] = ldb.MessageElement(new_owner,
-                                               ldb.FLAG_MOD_ADD,
-                                               "fSMORoleOwner")
+                                                ldb.FLAG_MOD_ADD,
+                                                "fSMORoleOwner")
         try:
             samdb.modify(m)
         except LdbError as e5:
index e4ea7ba36972183c8cc0465f2c340c3e74b3297b..6a7efe8add879dc575c3de8e2be91b4a120a8fb5 100644 (file)
@@ -1385,7 +1385,7 @@ class cmd_restore(cmd_create):
             dtd_header += '\n]>\n'
 
         super(cmd_restore, self).run(displayname, H, tmpdir, sambaopts,
-                                    credopts, versionopts)
+                                     credopts, versionopts)
 
         try:
             # Iterate over backup files and restore with DTD
index 73aad386450a2d04d9b2d23b75e5e692c3266abd..7938a077d18ad71372d9fd0ce8f3af780c2c8f68 100644 (file)
@@ -147,9 +147,9 @@ class GpoCmdTestCase(SambaToolCmdTest):
 
             # Compare the directories
             self.assertIsNone(has_difference(os.path.join(new_path, 'policy',
-                                                         gpo_guid),
-                                            static_path, binary=True,
-                                            xml=False))
+                                                          gpo_guid),
+                                             static_path, binary=True,
+                                             xml=False))
         finally:
             if gpo_guid:
                 (result, out, err) = self.runsubcmd("gpo", "del", gpo_guid,
@@ -222,10 +222,10 @@ class GpoCmdTestCase(SambaToolCmdTest):
 
             # Compare the directories
             self.assertIsNone(has_difference(os.path.join(new_path, 'policy',
-                                                         gpo_guid1),
-                                            os.path.join(new_path, 'policy',
-                                                         gpo_guid2),
-                                            binary=True, xml=False))
+                                                          gpo_guid1),
+                                             os.path.join(new_path, 'policy',
+                                                          gpo_guid2),
+                                             binary=True, xml=False))
         finally:
             if gpo_guid1:
                 (result, out, err) = self.runsubcmd("gpo", "del", gpo_guid1,
@@ -303,10 +303,10 @@ class GpoCmdTestCase(SambaToolCmdTest):
 
             # Compare the directories
             self.assertIsNone(has_difference(os.path.join(new_path, 'policy',
-                                                         gpo_guid1),
-                                            os.path.join(new_path, 'policy',
-                                                         gpo_guid2),
-                                            binary=True, xml=True))
+                                                          gpo_guid1),
+                                             os.path.join(new_path, 'policy',
+                                                          gpo_guid2),
+                                             binary=True, xml=True))
         finally:
             if gpo_guid1:
                 (result, out, err) = self.runsubcmd("gpo", "del", gpo_guid1,
@@ -391,9 +391,9 @@ class GpoCmdTestCase(SambaToolCmdTest):
 
             # Compare the directories (XML)
             self.assertIsNone(has_difference(os.path.join(new_path, 'policy',
-                                                         gpo_guid),
-                                            static_path, binary=False,
-                                            xml=True))
+                                                          gpo_guid),
+                                             static_path, binary=False,
+                                             xml=True))
         finally:
             if gpo_guid:
                 (result, out, err) = self.runsubcmd("gpo", "del", gpo_guid,
index 1e8f06386b8dbf62bdea3fdf74c17f8c03ecdb23..0136cc97ce63a57e8a2a4c109fc19e964e66bd8a 100755 (executable)
@@ -102,7 +102,7 @@ def get_quotas(uid, quota_list):
 
 def get_users():
     output = subprocess.Popen(['getent', 'passwd'],
-                             stdout=subprocess.PIPE).communicate()[0].decode("utf-8").split('\n')
+                              stdout=subprocess.PIPE).communicate()[0].decode("utf-8").split('\n')
     users = []
     for line in output:
         info = line.split(':')
@@ -222,7 +222,7 @@ def main():
     env.envdir = sys.argv[5]
     env.smbcquotas = sys.argv[6]
     quota_script = os.path.join(os.path.dirname(sys.argv[0]),
-                            "getset_quota.py")
+                                "getset_quota.py")
     #copy the quota script to the evironment
     shutil.copy2(quota_script, env.envdir)
 
index 478aec67761e71c4a03a29eac696a7e066ede4b2..3f82a359553012b2743d7c4683407fcc009b4ef2 100755 (executable)
@@ -628,7 +628,7 @@ class ConfidentialAttrTestDenyAcl(ConfidentialAttrCommon):
             res = samdb.search(self.test_dn, expression=expr,
                                scope=SCOPE_SUBTREE, attrs=attr)
             self.assertTrue(len(res) == expected_num,
-                           "%u results, not %u for search %s, attr %s" %
+                            "%u results, not %u for search %s, attr %s" %
                             (len(res), expected_num, expr, str(attr)))
 
             # assert we haven't revealed the hidden test-object
index 4860995c8d3b77c68b9f9fe5c08bf86e3eeb4873..2b18853780d75c4ce3904d31f8cd015ac6f634ee 100644 (file)
@@ -254,7 +254,7 @@ class DrsBaseTestCase(SambaToolCmdTest):
             next_object = ctr6.first_object
             for i in range(0, ctr6.object_count):
                 print("Obj %d: %s %s" % (i, next_object.object.identifier.dn[:25],
-                                        next_object.object.identifier.guid))
+                                         next_object.object.identifier.guid))
                 next_object = next_object.next_object
 
             print("Linked Attributes: %d" % ctr6.linked_attributes_count)
@@ -273,7 +273,7 @@ class DrsBaseTestCase(SambaToolCmdTest):
                 if l.flags & drsuapi.DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE:
                     state = "Act"
                 print("  v%u %s changed %u" % (l.meta_data.version, state,
-                                              l.meta_data.originating_change_time))
+                                               l.meta_data.originating_change_time))
 
             print("HWM:     %d" % (ctr6.new_highwatermark.highest_usn))
             print("Tmp HWM: %d" % (ctr6.new_highwatermark.tmp_highest_usn))
index b42c84d829bc23f2e749aad6f556fe781c904513..ac550b2e4d06f1f18ad7482fd30d5b255475eab6 100755 (executable)
@@ -32,20 +32,20 @@ def provision_s4(t, func_level="2008"):
     t.del_files(["var", "private"])
     t.run_cmd("rm -f etc/smb.conf")
     provision = ['bin/samba-tool',
-               'domain',
-               'provision',
-               '--realm=${LCREALM}',
-               '--domain=${DOMAIN}',
-               '--adminpass=${PASSWORD1}',
-               '--server-role=domain controller',
-               '--function-level=%s' % func_level,
-               '-d${DEBUGLEVEL}',
-               '--option=interfaces=${INTERFACE}',
-               '--host-ip=${INTERFACE_IP}',
-               '--option=bind interfaces only=yes',
-               '--option=rndc command=${RNDC} -c${PREFIX}/etc/rndc.conf',
-               '--dns-backend=${NAMESERVER_BACKEND}',
-               '${DNS_FORWARDER}']
+                 'domain',
+                 'provision',
+                 '--realm=${LCREALM}',
+                 '--domain=${DOMAIN}',
+                 '--adminpass=${PASSWORD1}',
+                 '--server-role=domain controller',
+                 '--function-level=%s' % func_level,
+                 '-d${DEBUGLEVEL}',
+                 '--option=interfaces=${INTERFACE}',
+                 '--host-ip=${INTERFACE_IP}',
+                 '--option=bind interfaces only=yes',
+                 '--option=rndc command=${RNDC} -c${PREFIX}/etc/rndc.conf',
+                 '--dns-backend=${NAMESERVER_BACKEND}',
+                 '${DNS_FORWARDER}']
     if t.getvar('USE_NTVFS'):
         provision.append('${USE_NTVFS}')