]> git.decadent.org.uk Git - dak.git/commitdiff
Don't use deprecated string module.
authorChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 13:47:46 +0000 (13:47 +0000)
committerChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 14:29:57 +0000 (14:29 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
daklib/utils.py

index 80e8d68f0ccd5b4ce75cab5c822114d07c18d6f0..6a0e5321545a943ea285f8e52b728335591cb5e7 100755 (executable)
@@ -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"):