summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2023-06-06 13:12:45 +0200
committerAndreas Schneider <asn@cryptomilk.org>2023-06-23 13:44:31 +0000
commita15b8611cebc7161e68444143174ce087a5df8ef (patch)
treee955db643bf751cdc34fcb556f66e09c3716cb18 /python
parent535617a840d24c4502e52c0eae192df5f2dd00f7 (diff)
downloadsamba-a15b8611cebc7161e68444143174ce087a5df8ef.tar.gz
samba-a15b8611cebc7161e68444143174ce087a5df8ef.tar.bz2
samba-a15b8611cebc7161e68444143174ce087a5df8ef.zip
python:samba:emulate: Fix code spelling
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/emulate/traffic.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/samba/emulate/traffic.py b/python/samba/emulate/traffic.py
index f314e3d3fc1..4811fe8bd08 100644
--- a/python/samba/emulate/traffic.py
+++ b/python/samba/emulate/traffic.py
@@ -117,7 +117,7 @@ def debug(level, msg, *args):
def debug_lineno(*args):
- """ Print an unformatted log message to stderr, contaning the line number
+ """ Print an unformatted log message to stderr, containing the line number
"""
tb = traceback.extract_stack(limit=2)
print((" %s:" "\033[01;33m"
@@ -436,7 +436,7 @@ class ReplayContext(object):
for i in range(5):
p += ',DC'
if p != k and p in dn_map:
- print('dn_map collison %s %s' % (k, p),
+ print('dn_map collision %s %s' % (k, p),
file=sys.stderr)
continue
dn_map[p] = dn_map[k]
@@ -997,7 +997,7 @@ class Conversation(object):
if self.client_balance < 0:
return (a, b)
- # in the absense of a clue, we will fall through to assuming
+ # in the absence of a clue, we will fall through to assuming
# the lowest number is the server (which is usually true).
if self.client_balance == 0 and server_clue == b:
@@ -1006,7 +1006,7 @@ class Conversation(object):
return (b, a)
def forget_packets_outside_window(self, s, e):
- """Prune any packets outside the timne window we're interested in
+ """Prune any packets outside the time window we're interested in
:param s: start of the window
:param e: end of the window
@@ -1924,7 +1924,7 @@ def user_name(instance_id, i):
def search_objectclass(ldb, objectclass='user', attr='sAMAccountName'):
- """Seach objectclass, return attr in a set"""
+ """Search objectclass, return attr in a set"""
objs = ldb.search(
expression="(objectClass={})".format(objectclass),
attrs=[attr]