fix typo in mail.py
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sun, 20 Aug 2006 02:21:59 -0300
changeset 2964 26c8d37496c2
parent 2963 a8546e40070a
child 2965 96d034d02d61
child 2982 890e285c52a1
fix typo in mail.py
mercurial/mail.py
--- a/mercurial/mail.py	Sun Aug 20 02:21:51 2006 -0300
+++ b/mercurial/mail.py	Sun Aug 20 02:21:59 2006 -0300
@@ -18,8 +18,8 @@
     if not mailhost:
         raise util.Abort(_('no [smtp]host in hgrc - cannot send mail'))
     mailport = int(ui.config('smtp', 'port', 25))
-    self.note(_('sending mail: smtp host %s, port %s\n') %
-              (mailhost, mailport))
+    ui.note(_('sending mail: smtp host %s, port %s\n') %
+            (mailhost, mailport))
     s.connect(host=mailhost, port=mailport)
     if ui.configbool('smtp', 'tls'):
         ui.note(_('(using tls)\n'))