From: Chris Lamb Date: Fri, 30 Oct 2009 13:47:46 +0000 (+0000) Subject: Don't use deprecated string module. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e6ff9b65bc4a3db801db6ef7dd6932866c0f13ae;p=dak.git Don't use deprecated string module. Signed-off-by: Chris Lamb --- diff --git a/daklib/utils.py b/daklib/utils.py index 80e8d68f..6a0e5321 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -36,7 +36,6 @@ import stat import apt_pkg import time import re -import string import email as modemail import subprocess @@ -615,7 +614,7 @@ def send_mail (message, filename=""): if len(match) == 0: del message_raw[field] else: - message_raw.replace_header(field, string.join(match, ", ")) + message_raw.replace_header(field, ', '.join(match)) # Change message fields in order if we don't have a To header if not message_raw.has_key("To"):