1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-23 00:23:53 +03:00

python:samba: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Jun 23 14:51:14 UTC 2023 on atb-devel-224
This commit is contained in:
Andreas Schneider
2023-06-06 13:31:52 +02:00
committed by Andreas Schneider
parent d4798967c0
commit c837ecf442
13 changed files with 24 additions and 24 deletions

View File

@@ -169,7 +169,7 @@ class Ldb(_Ldb):
# Try to delete user/computer accounts to allow deletion of groups
self.erase_users_computers(basedn)
# Delete the 'visible' records, and the invisble 'deleted' records (if
# Delete the 'visible' records, and the invisible 'deleted' records (if
# this DB supports it)
for msg in self.search(basedn, ldb.SCOPE_SUBTREE,
"(&(|(objectclass=*)(distinguishedName=*))(!(distinguishedName=@BASEINFO)))",
@@ -260,7 +260,7 @@ def substitute_var(text, values):
"""Substitute strings of the form ${NAME} in str, replacing
with substitutions from values.
:param text: Text in which to subsitute.
:param text: Text in which to substitute.
:param values: Dictionary with keys and values.
"""
@@ -293,7 +293,7 @@ def read_and_sub_file(file_name, subst_vars):
"""Read a file and sub in variables found in it
:param file_name: File to be read (typically from setup directory)
param subst_vars: Optional variables to subsitute in the file.
param subst_vars: Optional variables to substitute in the file.
"""
with open(file_name, 'r', encoding="utf-8") as data_file:
data = data_file.read()