[dak/master] git rid of useless email realeted imports. added docstring for module Signed-off-by: Mike O'Connor <stew@vireo.org>
---
dak/bts_categorize.py | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/dak/bts_categorize.py b/dak/bts_categorize.py
index 1a4548e..9112178 100755
--- a/dak/bts_categorize.py
+++ b/dak/bts_categorize.py
@@ -1,9 +1,11 @@
#!/usr/bin/python
-# bts -- manage bugs filed against ftp.debian.org
-#
-# Copyright 2009 Mike O'Connor <stew@vireo.org>
-#
+"""
+bts -- manage bugs filed against ftp.debian.org
+
+Copyright 2009 Mike O'Connor <stew@vireo.org>
+"""
+
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
@@ -123,10 +125,7 @@ class BugClassifier(object):
return controls
-import smtplib
-import email.Message
-
-def send_email(commands, simulate):
+def send_email(commands, simulate=False):
global Cnf
Subst = {'__COMMANDS__' : commands,
--
1.5.6.5
Reply to: