Skip to content

Commit 1a74651

Browse files
committed
remove jared hack
1 parent b620869 commit 1a74651

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

Mailman/Handlers/SMTPDirect.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -258,19 +258,6 @@ def process(mlist, msg, msgdata):
258258
raise Errors.SomeRecipientsFailed(tempfailures, permfailures)
259259

260260

261-
262-
def domsort(uida, uidb):
263-
## sort by domain
264-
## usage foo.sort(domsort)
265-
i = uida.rfind('@')
266-
if i >= 0:
267-
doma = uida[i+1:]
268-
269-
i = uidb.rfind('@')
270-
if i >= 0:
271-
domb = uidb[i+1:]
272-
273-
return cmp(doma, domb)
274261

275262
def chunkify(recips, chunksize):
276263
# First do a simple sort on top level domain. It probably doesn't buy us
@@ -291,7 +278,6 @@ def chunkify(recips, chunksize):
291278
# Need to sort by domain name. if we split to chunks it is possible
292279
# some well-known domains will be interspersed as we sort by
293280
# userid by default instead of by domain. (jared mauch)
294-
recips.sort(domsort)
295281
buckets = {}
296282
for r in recips:
297283
tld = None

0 commit comments

Comments
 (0)