PEP8: fix E305: expected 2 blank lines after class or function definition, found 1
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 30 Jul 2018 06:21:29 +0000 (18:21 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 24 Aug 2018 05:49:30 +0000 (07:49 +0200)
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>
56 files changed:
auth/credentials/tests/bind.py
lib/ldb-samba/tests/match_rules.py
lib/ldb/_ldb_text.py
lib/ldb/tests/python/index.py
lib/tevent/bindings.py
python/examples/samr.py
python/examples/winreg.py
python/samba/__init__.py
python/samba/gpclass.py
python/samba/kcc/debug.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/user.py
python/samba/tests/dcerpc/raw_protocol.py
python/samba/tests/dcerpc/testrpc.py
python/samba/tests/dns.py
python/samba/tests/dns_forwarder.py
python/samba/tests/dns_forwarder_helpers/server.py
python/samba/tests/dns_tkey.py
python/samba/tests/libsmb_samba_internal.py
python/samba/tests/samba_tool/visualize.py
python/samba/tests/upgradeprovisionneeddc.py
script/autobuild.py
script/bisect-test.py
script/generate_param.py
selftest/selftesthelpers.py
source3/script/tests/test_wbinfo_sids2xids_int.py
source3/selftest/tests.py
source3/torture/test_ntlm_auth.py
source4/dsdb/samdb/ldb_modules/tests/possibleinferiors.py
source4/dsdb/tests/python/ad_dc_search_performance.py
source4/dsdb/tests/python/ldap.py
source4/dsdb/tests/python/ldap_schema.py
source4/dsdb/tests/python/ldap_syntaxes.py
source4/dsdb/tests/python/linked_attributes.py
source4/dsdb/tests/python/login_basics.py
source4/dsdb/tests/python/ndr_pack_performance.py
source4/dsdb/tests/python/notification.py
source4/dsdb/tests/python/password_lockout.py
source4/dsdb/tests/python/passwords.py
source4/dsdb/tests/python/rodc.py
source4/dsdb/tests/python/rodc_rwdc.py
source4/dsdb/tests/python/sec_descriptor.py
source4/dsdb/tests/python/sort.py
source4/dsdb/tests/python/token_group.py
source4/lib/wmi/wmi.py
source4/script/depfilter.py
source4/scripting/devel/demodirsync.py
source4/scripting/devel/pfm_verify.py
source4/scripting/devel/repl_cleartext_pwd.py
source4/scripting/devel/speedtest.py
source4/selftest/tests.py

index c5f792111855add3aba422417ce3eba96b18dfa0..7e0e19fbff8a4d231713923df2e9d0d2ab1d50ed 100755 (executable)
@@ -165,4 +165,5 @@ unicodePwd:: """ + base64.b64encode(u"\"P@ssw0rd\"".encode('utf-16-le')).decode(
 
         res = ldb_user4.search(base="", expression="", scope=SCOPE_BASE, attrs=["*"])
 
+
 TestProgram(module=__name__, opts=subunitopts)
index 58658a0a9ea2160211ea41638c35b3ed42197c93..aaa9675c1960bf19f14696efefee0352505a9e38 100755 (executable)
@@ -1752,6 +1752,7 @@ class MatchRuleConditionTests(samba.tests.TestCase):
                                     self.ou_groups, self.ou_computers))
         self.assertEqual(len(res1), 0)
 
+
 parser = optparse.OptionParser("match_rules.py [options] <host>")
 sambaopts = options.SambaOptions(parser)
 parser.add_option_group(sambaopts)
index f6f1ac06fa7a4d4f95149f9619b63ede59a42260..65d603bf2deeb004362c38e9588dd1bd0be66eac 100644 (file)
@@ -92,6 +92,7 @@ class MessageElementTextWrapper(_WrapBase):
     def set_flags(self):
         return self._wrapped.set_flags
 
+
 _wrap_element = MessageElementTextWrapper._wrap
 
 
index 72b99551a9b881cab5dfcd0a7310a9cebaff6004..5d0b7527e5b21eab866f0fad0a7be2459f247a16 100755 (executable)
@@ -1324,6 +1324,7 @@ class RejectSubDBIndex(LdbBaseTest):
             self.assertEqual(ldb.ERR_OPERATIONS_ERROR, code)
             self.assertIn("sub-database index", string)
 
+
 if __name__ == '__main__':
     import unittest
     unittest.TestProgram()
index 6bea4771b9bcce332f819e238d268bcfae19b624..28e404dac4e3c31b61fd71726e0395743349c621 100644 (file)
@@ -109,5 +109,6 @@ class ContextTests(TestCase):
         self.ctx.loop_once()
         self.assertEqual(collecting_list, [1, 2])
 
+
 if __name__ == '__main__':
     TestProgram()
index 521ea6416107e8fba9886db98022a5780228c4a7..c1af82105aa612237f4364c6df3eb999d4e3c44e 100755 (executable)
@@ -106,6 +106,7 @@ def test_EnumDomains(samr, handle):
         test_domain_ops(samr, dom_handle)
         samr.Close(dom_handle)
 
+
 if len(sys.argv) != 2:
     print "Usage: samr.js <BINDING>"
     sys.exit(1)
index e419320b16f3a5e1370f779842b46a45dc007520..eff9f5a6dc8dcf0aee26d831c7f6412d76f942bf 100755 (executable)
@@ -69,6 +69,7 @@ def list_path(key, path):
         list_values(subkey)
     return count
 
+
 if len(args) > 1:
     root = args[1]
 else:
index 90f85851256d2f0d5f51724e333d3af85f2479dd..c95b2fe3e26acb333e13927e6669ab74e836b1ed 100644 (file)
@@ -304,6 +304,7 @@ def setup_file(template, fname, subst_vars=None):
     finally:
         f.close()
 
+
 MAX_NETBIOS_NAME_LEN = 15
 
 
@@ -384,6 +385,7 @@ def arcfour_encrypt(key, data):
     from samba.crypto import arcfour_crypt_blob
     return arcfour_crypt_blob(data, key)
 
+
 version = _glue.version
 interface_ips = _glue.interface_ips
 fault_setup = _glue.fault_setup
index 751d0ad4aaea8735ca0ff9a0d42b07f47b9e0288..a5e611fc0e54295f562aeb7b8dd2d9c88c22e087 100644 (file)
@@ -402,6 +402,7 @@ class gp_inf_ext(gp_ext):
     def __str__(self):
         pass
 
+
 ''' Fetch the hostname of a writable DC '''
 
 
@@ -411,6 +412,7 @@ def get_dc_hostname(creds, lp):
                                                           nbt.NBT_SERVER_DS))
     return cldap_ret.pdc_dns_name
 
+
 ''' Fetch a list of GUIDs for applicable GPOs '''
 
 
index 24c70d0de3a2ca552463c7dd8af7a3f91ce5aa90..8a69bde43a7720546cd67ee167136e481d9cf696 100644 (file)
@@ -43,6 +43,7 @@ from samba.colour import GREY, WHITE
 def _color_debug(*args, **kwargs):
     DEBUG('%s%s%s' % (kwargs['color'], args[0], C_NORMAL), *args[1:])
 
+
 _globals = globals()
 for _color in ('DARK_RED', 'RED', 'DARK_GREEN', 'GREEN', 'YELLOW',
                'DARK_YELLOW', 'DARK_BLUE', 'BLUE', 'PURPLE', 'MAGENTA',
index b19cc109c512be18e2fda2975d4ccbc46cb46f69..a1dda6b5e0266d5c935d9ddcd2a9210225365219 100644 (file)
@@ -41,6 +41,7 @@ class KCCError(Exception):
 class NCType(object):
     (unknown, schema, domain, config, application) = range(0, 5)
 
+
 # map the NCType enum to strings for debugging
 nctype_lut = dict((v, k) for k, v in NCType.__dict__.items() if k[:2] != '__')
 
index 0eeeb88dc87ecfd45c3ba85ed1277440e68afeea..fd125806ca1479b9c992fb4f47b4ffe2d35eceea 100644 (file)
@@ -54,6 +54,7 @@ def __read_folded_line(f, buffer):
 
     return (line, buffer)
 
+
 # Only compile regexp once.
 # Will not match options after the attribute type.
 attr_type_re = re.compile("^([A-Za-z][A-Za-z0-9-]*):")
@@ -181,6 +182,7 @@ def read_ms_ldif(filename):
 
     return "\n\n".join(out) + "\n\n"
 
+
 if __name__ == '__main__':
     import sys
 
index bd9924749679086058f1df972ea2a9babe402759..3afe2ecb8387c5c12cc3c939d807df3f17333cf4 100644 (file)
@@ -259,6 +259,7 @@ def read_ms_markdown(in_file, out_folder=None, out_dict={}):
 
             # print ET.tostring(node, method='text')
 
+
 if __name__ == '__main__':
     import sys
 
index 7310eafe61adc6837712fd72261ab1a830c7f9e0..52abe74057a09247d91a754b52b83384b5589103 100644 (file)
@@ -315,6 +315,7 @@ def read_ms_schema(attr_file, classes_file, dump_attributes=True, dump_classes=T
 
     return attr_ldif + "\n\n" + classes_ldif + "\n\n"
 
+
 if __name__ == '__main__':
     import sys
 
index 5283e24d85851d5ee5b4d690d65b86bbdecfacc5..ff1afb1a588beae4ac14793be6243b092f40c095 100644 (file)
@@ -58,6 +58,7 @@ def read_ms_markdown(in_file, out_folder):
         if ldf is not None:
             ldf.close()
 
+
 if __name__ == '__main__':
     import sys
 
index 87536526cca9e2bfc85a4bdd0f887ea9e1a543c9..84ed5a51111b4a231400c0432c76d926fe1d1232 100644 (file)
@@ -156,6 +156,7 @@ def get_testparm_var(testparm, smbconf, varname):
         return lines[0].strip()
     return ""
 
+
 try:
     import samba.dckeytab
 except ImportError:
index 5f90807e3678ffe449b8cf19941f7b735671282c..a7b3b98865241b154e91b9fa120ff9c97d7bff18 100644 (file)
@@ -158,6 +158,7 @@ def get_rounds(options):
                 return 0
     return 0
 
+
 try:
     random_reason = check_random()
     if random_reason is not None:
index 6cc6718ba4ba6f2c08211c8fd6dce76081711ce5..e7576994f7215bc3d64d80a3de30f71df90fa88c 100755 (executable)
@@ -4980,6 +4980,7 @@ class TestDCERPC_BIND(RawDCERPCTest):
         conn2.do_single_request(call_id=1, ctx=ctx2, io=inq_if_ids)
         return
 
+
 if __name__ == "__main__":
     global_ndr_print = True
     global_hexdump = True
index 1560df647c34f129a64f5b6e142a4c07f902b159..045a8cfade963b6bd56dbad3a791da2c91522f80 100644 (file)
@@ -134,6 +134,7 @@ class RpcTests(object):
         self.check_all_interfaces()
         return self.errcount
 
+
 tests = RpcTests()
 errcount = tests.run()
 if errcount == 0:
index 78768ce3ef016e7fcd8622d8037814ad1979d9f9..50486f0591b1e251c51453bdb24edb41d05c8e38 100644 (file)
@@ -1909,4 +1909,5 @@ class TestRPCRoundtrip(DNSTest):
                 None,
                 add_rec_buf)
 
+
 TestProgram(module=__name__, opts=subunitopts)
index 5c7a70e7051de60626b7c29ec017d55ef60d3650..6d8efa5edd39666a3be0ce7f39e274850c2b1aec 100644 (file)
@@ -603,4 +603,5 @@ class TestDnsForwarding(DNSTest):
         except socket.timeout:
             self.fail("DNS server is too slow (timeout %s)" % timeout)
 
+
 TestProgram(module=__name__, opts=subunitopts)
index 4d6e57d325d90f5198d621a118422bdd3b4af465..a300f0fc8235aff888e410ddd65721b598ee6a69 100644 (file)
@@ -36,6 +36,7 @@ def debug(msg):
         print("\033[00;36m%s\033[00m" % msg)
         sys.stdout.flush()
 
+
 timeout = 0
 
 
@@ -93,4 +94,5 @@ def main():
     server = SocketServer.UDPServer((host, int(port)), DnsHandler)
     server.serve_forever()
 
+
 main()
index 4afa7fefba5e3b7caafb501065239b8e3c74d3af..fff433eb600c684dbaa5829776a53967acc2cf08 100644 (file)
@@ -211,4 +211,5 @@ class TestDNSUpdates(DNSTKeyTest):
         rcode = self.search_record(self.newrecname)
         self.assert_rcode_equals(rcode, dns.DNS_RCODE_NXDOMAIN)
 
+
 TestProgram(module=__name__, opts=subunitopts)
index ec277230d817aea0c5f286df53647e1f1b36d565..c88095c8bc2f6f76cb0c3a9be6fc19191ffdc4ac 100644 (file)
@@ -75,6 +75,7 @@ class LibsmbTestCase(samba.tests.TestCase):
             if t.exc:
                 raise t.exc[0](t.exc[1])
 
+
 if __name__ == "__main__":
     import unittest
     unittest.main()
index abb6c49b3ad59ad887d78754c6df3deea7f5055c..bc1c91c9b5605959dfbbfbcaebcf577ea1ffcbb7 100644 (file)
@@ -403,6 +403,7 @@ class SambaToolVisualizeLdif(SambaToolCmdTest):
 
         self.remove_files(dbfile, dot_file)
 
+
 EXPECTED_DOT_MULTISITE_NO_KEY = r"""/* generated by samba */
 digraph A_samba_tool_production {
 label="NTDS Connections known to CN=WIN01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=ad,DC=samba,DC=example,DC=com";
index c4d3604d98b97e205363aabc5b451b3912b39892..c6d4de3af6e1c535e5f58ef47e5e8588459af460 100644 (file)
@@ -40,6 +40,7 @@ import ldb
 def dummymessage(a=None, b=None):
     pass
 
+
 smb_conf_path = "%s/%s/%s" % (os.environ["SELFTEST_PREFIX"], "ad_dc_ntvfs", "etc/smb.conf")
 
 
index fb08af47ec08a1af821797df9a1fcc92b6b8e5f9..4f895e97f3a61311697616510be6b261f10aefdf 100755 (executable)
@@ -685,6 +685,7 @@ def push_to(push_url, push_branch="master"):
             (push_remote, push_branch),
             show=True, dir=test_master)
 
+
 def_testbase = os.getenv("AUTOBUILD_TESTBASE", "/memdisk/%s" % os.getenv('USER'))
 
 gitroot = find_git_root()
index 84496fe253acab963fedae767247da5a3faca0fe..cdfc93bdb8afae8556388577b1c6dcff0327003e 100755 (executable)
@@ -51,6 +51,7 @@ def find_git_root():
         p = os.path.abspath(os.path.join(p, '..'))
     return None
 
+
 cwd = os.getcwd()
 gitroot = find_git_root()
 
@@ -79,6 +80,7 @@ def cleanup():
     os.unlink(f.name)
     sys.exit(-1)
 
+
 # run bisect
 ret = -1
 try:
index 34930494ba374f42ee4cf4880cdb66c7be7a1296..c9f18b1cdd10383b78f930c6271d712fb93acd36 100644 (file)
@@ -101,6 +101,7 @@ def iterate_all(path):
                'deprecated' : deprecated,
                'synonyms' : synonyms }
 
+
 # map doc attributes to a section of the generated function
 context_dict = {"G": "_GLOBAL", "S": "_LOCAL"}
 param_type_dict = {
@@ -148,6 +149,7 @@ def generate_functions(path_in, path_out):
     finally:
         f.close()
 
+
 mapping = {
             'boolean'      : 'bool ',
             'string'       : 'char *',
@@ -313,6 +315,7 @@ def make_param_defs(path_in, path_out, scope):
     finally:
         file_out.close()
 
+
 type_dict = {
               "boolean"      : "P_BOOL",
               "boolean-rev"  : "P_BOOLREV",
@@ -400,6 +403,7 @@ def make_param_table(path_in, path_out):
     finally:
         file_out.close()
 
+
 if options.mode == 'FUNCTIONS':
     generate_functions(options.filename, options.output)
 elif options.mode == 'S3PROTO':
index 490bc64ebdae1dde6811ea1015408f85a1a77b28..a393b70cc908d33a8bec418954b4c31af62147d7 100644 (file)
@@ -43,6 +43,7 @@ def bindir():
 def binpath(name):
     return os.path.join(bindir(), name)
 
+
 # Split perl variable to allow $PERL to be set to e.g. "perl -W"
 perl = os.getenv("PERL", "perl").split()
 
index f0f51429273f606d3287d1de4a1e377f6498bb32..6c2b552f62c0b94671230f437ff2f83b684d367e 100755 (executable)
@@ -28,6 +28,7 @@ def fill_cache(inids, idtype='gid'):
         subprocess.Popen([wbinfo, '--%s-to-sid=%s' % (idtype, inid)],
                          stdout=subprocess.PIPE).communicate()
 
+
 domain = subprocess.Popen([wbinfo, "--own-domain"],
                           stdout=subprocess.PIPE).communicate()[0].strip()
 domsid = subprocess.Popen([wbinfo, "-n", domain + "/"],
@@ -106,6 +107,7 @@ def check_multiple(sids, idtypes):
             sys.exit(1)
         i += 1
 
+
 # first round: with filled cache via sid-to-id
 check_singular(sids, gids, 'gid')
 check_singular(sids, uids, 'uid')
index 34a2f31246b55cbd523e46c88168914eb69e4073..2a05212103a7ea08d8a55270dfa73c7b32aa3a6d 100755 (executable)
@@ -37,6 +37,7 @@ def plansmbtorture4testsuite(name, env, options, description=''):
     selftesthelpers.plansmbtorture4testsuite(
         name, env, options, target='samba3', modname=modname)
 
+
 # find config.h
 try:
     config_h = os.environ["CONFIG_H"]
index d133527aa286e69a7e2ff99faacc0d513f0b8712..28b83f8cde789ce8da4880dfcf85fd4224808fcd 100755 (executable)
@@ -331,6 +331,7 @@ def main():
     os.waitpid(client_pid, 0)
     sys.exit(0)
 
+
 if __name__ == "__main__":
     main()
 
index 9e72a8358a7202e58132631ee513076e058fd5ea..0dffddeeb36da7de23d27a9db4db99784a5f5bd1 100755 (executable)
@@ -254,6 +254,7 @@ def get_object_classes(db):
         list.append(item)
     return list
 
+
 classinfo = pull_classinfo(db)
 
 if objectclass is None:
index 335ba9ba77faa692e83651ee34c2739d6108ff21..905572a2d3f75b4703dcbf28a1cc24b6d7eda7e3 100644 (file)
@@ -283,6 +283,7 @@ class UserTests(samba.tests.TestCase):
     def test_03_13_member_search_linked_users(self):
         self._test_member_search(rounds=2)
 
+
 if "://" not in host:
     if os.path.isfile(host):
         host = "tdb://%s" % host
index 5c243af100cad7b3b999bd0053f41c2c858649fa..b2ef01b9420085fe4952f6be59361ea9cb944ceb 100755 (executable)
@@ -3270,6 +3270,7 @@ class BaseDnTests(samba.tests.TestCase):
         expected = "%s:%s$@%s" % (dns_domainname.lower(), hostname.lower(), dns_domainname.upper())
         self.assertEquals(given, expected)
 
+
 if not "://" in host:
     if os.path.isfile(host):
         host = "tdb://%s" % host
index 2ce7b79441d92283b324429bd35a74874dcaab3e..9a4003ae612fb703bd9eafa445ba7524f8ecb243 100755 (executable)
@@ -1645,6 +1645,7 @@ class SchemaTests_msDS_isRODC(samba.tests.TestCase):
             else:
                 self.assertTrue("msDS-isRODC" in ldb_msg)
 
+
 if not "://" in host:
     if os.path.isfile(host):
         host = "tdb://%s" % host
index 932d3d8d00cc05cebed9c58e88b3783351077fd6..9af3ee454443fdb02956d63ea8069acf02168f37 100755 (executable)
@@ -384,4 +384,5 @@ name: """ + object_name + """
             (num, _) = e14.args
             self.assertEquals(num, ERR_CONSTRAINT_VIOLATION)
 
+
 TestProgram(module=__name__, opts=subunitopts)
index f297ac9c16b982c17ea7af5361744e805fc07664..ee96278bfe6dd466698e51a166e6890578b18e1a 100644 (file)
@@ -720,6 +720,7 @@ class LATests(samba.tests.TestCase):
         self.assert_forward_links(e1, [], attr='addressBookRoots2',
                                   show_deactivated_link=0)
 
+
 if "://" not in host:
     if os.path.isfile(host):
         host = "tdb://%s" % host
index d1627881fa64af7a637c6261d44dc4b7fd4295b2..39406fc36a214f0ceea3d3e8311a88d0523afad7 100755 (executable)
@@ -179,6 +179,7 @@ userPassword: %s
     def test_login_basics_ntlm(self):
         self._test_login_basics(self.lockout1ntlm_creds)
 
+
 host_url = "ldap://%s" % host
 
 TestProgram(module=__name__, opts=subunitopts)
index 0ae9f825d2a624f6980a078d5dec50d02ad1965a..935bcb6f345674db450d1cc7e00309a8c2030b0f 100644 (file)
@@ -212,6 +212,7 @@ class UserTests(samba.tests.TestCase):
         desc = ndr_unpack(drsuapi.DsGetNCChangesCtr6, blob)
         self._test_pack(desc, cycles=20)
 
+
 if "://" not in host:
     if os.path.isfile(host):
         host = "tdb://%s" % host
index 20fe7c5d8a3ff58b8ad79965a1bebbc90e32fc6d..bb3280aaece8a13b5d39e0d8b29a4a87be44f7ac 100755 (executable)
@@ -364,6 +364,7 @@ delete: otherLoginWorkstations
                 print("va[%s]" % va)
             self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
 
+
 if not "://" in url:
     if os.path.isfile(url):
         url = "tdb://%s" % url
index d60e55f635818033a35068b7ab10efb9458966ad..9197d9aa2662fb4c806b71b37d8a3d4318002dcb 100755 (executable)
@@ -1357,6 +1357,7 @@ userPassword: """ + userpass + """
         self._test_samr_password_change(self.lockout1ntlm_creds,
                                         other_creds=self.lockout2ntlm_creds)
 
+
 host_url = "ldap://%s" % host
 
 TestProgram(module=__name__, opts=subunitopts)
index 0509612ff95aa23a62153a0a8320d85d0480ac94..44b04943027ee304a2dcdcef1d11a43dec38f3cc 100755 (executable)
@@ -1133,6 +1133,7 @@ unicodePwd:: """ + base64.b64encode("\"thatsAcomplPASS3\"".encode('utf-16-le')).
         # Close the second LDB connection (with the user credentials)
         self.ldb2 = None
 
+
 if not "://" in host:
     if os.path.isfile(host):
         host = "tdb://%s" % host
index 790259ce5a98861528e0689a33e0b14c5447d9ca..ec2c55d7957ede86d777a2173ab740d571c7892d 100755 (executable)
@@ -255,4 +255,5 @@ def main():
 
     TestProgram(module=__name__, opts=subunitopts)
 
+
 main()
index 20d4df699296f42a015b65c4c99d3e9968208cd7..e4b3c583452f6a310946c994eec5050afd008a55 100644 (file)
@@ -1296,4 +1296,5 @@ def main():
     finally:
         set_auto_replication(RWDC, True)
 
+
 main()
index ca1c616b168d88e5cb4506f464cb1391108b3dc6..3fc99f73762733c9df5960ace917c86cd61b9d19 100755 (executable)
@@ -2145,6 +2145,7 @@ class SdAutoInheritTests(DescriptorTests):
         sub_usn2 = int(sub_res2[0]["uSNChanged"][0])
         self.assertTrue(sub_usn2 == sub_usn0)
 
+
 if not "://" in host:
     if os.path.isfile(host):
         host = "tdb://%s" % host
index 6eef4c03689ad72fa03e213f7147952626f11d83..b89a8c67dc0f96afb99a0b79f6bdf2534262dc11 100644 (file)
@@ -50,6 +50,7 @@ def norm(x):
     x = x.decode('utf-8')
     return normalize('NFKC', x).upper().encode('utf-8')
 
+
 # Python, Windows, and Samba all sort the following sequence in
 # drastically different ways. The order here is what you get from
 # Windows2012R2.
index 826deb01a06574585dc80970aff9afbb46450776..9769d2c03da00c2a787d4abb8208ccb08b45ab28 100755 (executable)
@@ -648,6 +648,7 @@ class DynamicTokenTest(samba.tests.TestCase):
         self.assertEqual(len(rids.rids), 1)
         self.assertEqual(rids.rids[0].rid, user_info.primary_gid)
 
+
 if not "://" in url:
     if os.path.isfile(url):
         url = "tdb://%s" % url
index 9d1871f5288f27ace587a0ecd73b1348a7a71ad5..f227e399e16608b314d2f9fcd0775c4f31311948 100644 (file)
@@ -42,6 +42,7 @@ def _swig_repr(self):
     except: strthis = ""
     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
 
+
 import types
 try:
     _object = types.ObjectType
@@ -72,6 +73,8 @@ class IUnknown(object):
     def __init__(self, *args, **kwargs): 
         _wmi.IUnknown_swiginit(self, _wmi.new_IUnknown(*args, **kwargs))
     __swig_destroy__ = _wmi.delete_IUnknown
+
+
 IUnknown.Release = new_instancemethod(_wmi.IUnknown_Release, None, IUnknown)
 IUnknown_swigregister = _wmi.IUnknown_swigregister
 IUnknown_swigregister(IUnknown)
@@ -84,6 +87,8 @@ class IWbemServices(object):
     def __init__(self, *args, **kwargs): 
         _wmi.IWbemServices_swiginit(self, _wmi.new_IWbemServices(*args, **kwargs))
     __swig_destroy__ = _wmi.delete_IWbemServices
+
+
 IWbemServices.ExecQuery = new_instancemethod(_wmi.IWbemServices_ExecQuery, None, IWbemServices)
 IWbemServices.ExecNotificationQuery = new_instancemethod(_wmi.IWbemServices_ExecNotificationQuery, None, IWbemServices)
 IWbemServices.CreateInstanceEnum = new_instancemethod(_wmi.IWbemServices_CreateInstanceEnum, None, IWbemServices)
@@ -98,6 +103,8 @@ class IEnumWbemClassObject(object):
     def __init__(self, *args, **kwargs): 
         _wmi.IEnumWbemClassObject_swiginit(self, _wmi.new_IEnumWbemClassObject(*args, **kwargs))
     __swig_destroy__ = _wmi.delete_IEnumWbemClassObject
+
+
 IEnumWbemClassObject.Reset = new_instancemethod(_wmi.IEnumWbemClassObject_Reset, None, IEnumWbemClassObject)
 IEnumWbemClassObject_swigregister = _wmi.IEnumWbemClassObject_swigregister
 IEnumWbemClassObject_swigregister(IEnumWbemClassObject)
index e4f0d0aba44152419d568f275f7f5eb627a12fa0..5af26a6eb0049853e43986e1a93527982276e717 100755 (executable)
@@ -39,6 +39,7 @@ def add_deps(node):
         for n in graph[node]:
             add_deps(n)
 
+
 add_deps(top)
 
 # Generate output
index 8f1e7d7c45171ea5bf21f99426cc3448bae5014f..67e361b1eb0bbdc06fc4720272477a0b791156e2 100755 (executable)
@@ -42,6 +42,7 @@ def printdirsync(ctl):
                 print("highest usn in extra %s" % cookie.blob.extra.ctr.cursors[0].highest_usn)
         return cookie
 
+
 remote_ldb = Ldb("ldap://" + opts.host + ":389", credentials=creds, lp=lp)
 tab = []
 if opts.b:
index 53f61dec67a5f707b74a16d1278d088b15f25cc1..95288df56d3e249fc4fdd5b18987e16a12ef5bd1 100755 (executable)
@@ -146,6 +146,7 @@ def _pfm_schi_verify(drs_schi, ldb_schi):
                       % (drs_schi.invocation_id, ldb_schi.invocation_id))
     return errors
 
+
 ########### main code ###########
 if __name__ == "__main__":
     # command line parsing
index a31c1287a71c65192ce4a9f5033abd774c15dc7e..4141cee1381d3f7d7cfb629f82ca7b61f39ab5e8 100755 (executable)
@@ -77,6 +77,7 @@ class globals:
 def attid_equal(a1, a2):
     return (a1 & 0xffffffff) == (a2 & 0xffffffff)
 
+
 ########### main code ###########
 if __name__ == "__main__":
     parser = OptionParser("repl_cleartext_pwd.py [options] server dn cookie_file clear_utf8_name [attid attname attmode] [clear_utf16_name")
index 581529047cd810e80962bcbe7acf3d362982de23..969edb0819214215b9d5d45a6c3e70eb0b822491 100755 (executable)
@@ -226,6 +226,7 @@ class AclSearchSpeedTest(SpeedTest):
 
 # Important unit running information
 
+
 if not "://" in host:
     host = "ldap://%s" % host
 
index 1fac4073f028699f4d3d39fc2c58d0f96f14d582..ca2f358989c160251a410d276f29cbcf709f2c56 100755 (executable)
@@ -31,6 +31,7 @@ def plansmbtorture4testsuite(name, env, options, modname=None):
     return selftesthelpers.plansmbtorture4testsuite(name, env, options,
                                                     target='samba4', modname=modname)
 
+
 samba4srcdir = source4dir()
 samba4bindir = bindir()
 validate = os.getenv("VALIDATE", "")