[gsoc-admin] email: Remove example code



commit c810f1e43e565e55fbb4519deaf14bd8e826e971
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date:   Mon Oct 5 20:28:00 2015 +0200

    email: Remove example code
    
    The test_main.py contains better sample code.

 maillib/email.py |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/maillib/email.py b/maillib/email.py
index 8434f4c..9d4465f 100755
--- a/maillib/email.py
+++ b/maillib/email.py
@@ -81,11 +81,3 @@ class EmailTemplate:
                       recipient.pretty_email_name(),
                       self.cc,
                       self.bcc)
-
-
-if __name__ == '__main__':
-    template_file = open('../data/templates/foo')
-    template_text = template_file.read()
-    format_dict = {'student_name': 'Rupert Monkey'}
-    template = EmailTemplate(template_text, None, None, format_dict)
-    print(template.get_specific())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]