mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
PEP8: fix W391: blank line at end of file
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
6f9eb617e3
commit
c9f2fdea1d
@ -57,4 +57,3 @@ def get_gp_client_side_extensions(logger, smb_conf):
|
|||||||
logger.info('Loaded user extension from %s: %s'
|
logger.info('Loaded user extension from %s: %s'
|
||||||
% (gp_ext['DllName'], ext.__name__))
|
% (gp_ext['DllName'], ext.__name__))
|
||||||
return (machine_exts, user_exts)
|
return (machine_exts, user_exts)
|
||||||
|
|
||||||
|
@ -193,4 +193,3 @@ if __name__ == '__main__':
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
print(read_ms_ldif(display_specifiers_file))
|
print(read_ms_ldif(display_specifiers_file))
|
||||||
|
|
||||||
|
@ -279,4 +279,3 @@ class cmd_ntacl(SuperCommand):
|
|||||||
subcommands["sysvolreset"] = cmd_ntacl_sysvolreset()
|
subcommands["sysvolreset"] = cmd_ntacl_sysvolreset()
|
||||||
subcommands["sysvolcheck"] = cmd_ntacl_sysvolcheck()
|
subcommands["sysvolcheck"] = cmd_ntacl_sysvolcheck()
|
||||||
subcommands["getdosinfo"] = cmd_dosinfo_get()
|
subcommands["getdosinfo"] = cmd_dosinfo_get()
|
||||||
|
|
||||||
|
@ -201,4 +201,3 @@ class cmd_spn(SuperCommand):
|
|||||||
subcommands["add"] = cmd_spn_add()
|
subcommands["add"] = cmd_spn_add()
|
||||||
subcommands["list"] = cmd_spn_list()
|
subcommands["list"] = cmd_spn_list()
|
||||||
subcommands["delete"] = cmd_spn_delete()
|
subcommands["delete"] = cmd_spn_delete()
|
||||||
|
|
||||||
|
@ -17,4 +17,3 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
"""Tests for the DCE/RPC Python bindings."""
|
"""Tests for the DCE/RPC Python bindings."""
|
||||||
|
|
||||||
|
@ -45,4 +45,3 @@ class SamrTests(RpcInterfaceTestCase):
|
|||||||
handle = self.conn.Connect2(None, security.SEC_FLAG_MAXIMUM_ALLOWED)
|
handle = self.conn.Connect2(None, security.SEC_FLAG_MAXIMUM_ALLOWED)
|
||||||
domains = toArray(*self.conn.EnumDomains(handle, 0, 4294967295))
|
domains = toArray(*self.conn.EnumDomains(handle, 0, 4294967295))
|
||||||
self.conn.Close(handle)
|
self.conn.Close(handle)
|
||||||
|
|
||||||
|
@ -148,4 +148,3 @@ class GPOTests(tests.TestCase):
|
|||||||
'Failed to find test variable in gpext.conf')
|
'Failed to find test variable in gpext.conf')
|
||||||
parser.remove_section('test_section')
|
parser.remove_section('test_section')
|
||||||
atomic_write_conf(lp, parser)
|
atomic_write_conf(lp, parser)
|
||||||
|
|
||||||
|
@ -75,6 +75,3 @@ class LsaStringTests(TestCase):
|
|||||||
# and one with contents
|
# and one with contents
|
||||||
self.assertEqual("Hello world",
|
self.assertEqual("Hello world",
|
||||||
str(lsa.String("Hello world")))
|
str(lsa.String("Hello world")))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -86,4 +86,3 @@ class NtlmDisabledTests(TestCase):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
@ -58,4 +58,3 @@ class PasswordTestCase(samba.tests.TestCase):
|
|||||||
samdb = self.ldb
|
samdb = self.ldb
|
||||||
|
|
||||||
PasswordCommon.allow_password_changes(self, samdb)
|
PasswordCommon.allow_password_changes(self, samdb)
|
||||||
|
|
||||||
|
@ -110,5 +110,3 @@ class SchemaCmdTestCase(SambaToolCmdTest):
|
|||||||
self.assertCmdSuccess(result, out, err)
|
self.assertCmdSuccess(result, out, err)
|
||||||
self.assertEquals(err, "", "Shouldn't be any error messages")
|
self.assertEquals(err, "", "Shouldn't be any error messages")
|
||||||
self.assertIn("dn: CN=Person,CN=Schema,CN=Configuration,DC=samba,DC=example,DC=com", out)
|
self.assertIn("dn: CN=Person,CN=Schema,CN=Configuration,DC=samba,DC=example,DC=com", out)
|
||||||
|
|
||||||
|
|
||||||
|
@ -153,5 +153,3 @@ class UpdateSecretsTests(samba.tests.TestCaseInTempDir):
|
|||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
super(UpdateSecretsTests, self).tearDown()
|
super(UpdateSecretsTests, self).tearDown()
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,4 +46,3 @@ def CHECK_SAMBA3_CHARSET(conf, crossbuild=False):
|
|||||||
else:
|
else:
|
||||||
conf.DEFINE('DEFAULT_DOS_CHARSET', "ASCII", quote=True)
|
conf.DEFINE('DEFAULT_DOS_CHARSET', "ASCII", quote=True)
|
||||||
conf.DEFINE('DEFAULT_UNIX_CHARSET', "UTF8", quote=True)
|
conf.DEFINE('DEFAULT_UNIX_CHARSET', "UTF8", quote=True)
|
||||||
|
|
||||||
|
@ -334,5 +334,3 @@ def main():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
@ -193,4 +193,3 @@ systemOnly: FALSE
|
|||||||
# compare resulting schemaInfo
|
# compare resulting schemaInfo
|
||||||
schi_after = self._getSchemaInfo()
|
schi_after = self._getSchemaInfo()
|
||||||
self._checkSchemaInfo(schi_before, schi_after)
|
self._checkSchemaInfo(schi_before, schi_after)
|
||||||
|
|
||||||
|
@ -118,5 +118,3 @@ IEnumWbemClassObject_swigregister = _wmi.IEnumWbemClassObject_swigregister
|
|||||||
IEnumWbemClassObject_swigregister(IEnumWbemClassObject)
|
IEnumWbemClassObject_swigregister(IEnumWbemClassObject)
|
||||||
|
|
||||||
IEnumWbemClassObject_SmartNext = _wmi.IEnumWbemClassObject_SmartNext
|
IEnumWbemClassObject_SmartNext = _wmi.IEnumWbemClassObject_SmartNext
|
||||||
|
|
||||||
|
|
||||||
|
@ -377,4 +377,3 @@ class DrsDeleteObjectTestCase(drs_base.DrsBaseTestCase):
|
|||||||
|
|
||||||
# trigger replication from DC1 to DC2, for cleanup
|
# trigger replication from DC1 to DC2, for cleanup
|
||||||
self._net_drs_replicate(DC=self.dnsname_dc2, fromDC=self.dnsname_dc1, forced=True)
|
self._net_drs_replicate(DC=self.dnsname_dc2, fromDC=self.dnsname_dc1, forced=True)
|
||||||
|
|
||||||
|
@ -304,5 +304,3 @@ class DrsReplicaSyncUnprivTestCase(drs_base.DrsBaseTestCase):
|
|||||||
partial_attribute_set=self.get_partial_attribute_set())
|
partial_attribute_set=self.get_partial_attribute_set())
|
||||||
self._test_repl_full(expected_error=[werror.WERR_DS_DRA_ACCESS_DENIED],
|
self._test_repl_full(expected_error=[werror.WERR_DS_DRA_ACCESS_DENIED],
|
||||||
partial_attribute_set=self.get_partial_attribute_set())
|
partial_attribute_set=self.get_partial_attribute_set())
|
||||||
|
|
||||||
|
|
||||||
|
@ -746,4 +746,3 @@ objectClass: organizationalUnit
|
|||||||
# Check deleted on DC2
|
# Check deleted on DC2
|
||||||
self._check_deleted(self.ldb_dc2, self.ou1)
|
self._check_deleted(self.ldb_dc2, self.ou1)
|
||||||
self._check_deleted(self.ldb_dc2, self.ou2)
|
self._check_deleted(self.ldb_dc2, self.ou2)
|
||||||
|
|
||||||
|
@ -57,4 +57,3 @@ class Libnet_SetPwdTest(samba.tests.TestCase):
|
|||||||
credentials=creds)
|
credentials=creds)
|
||||||
|
|
||||||
########################################################################################
|
########################################################################################
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user