Rev 28: Remove trailing whitespace. in http://bzr.arbash-meinel.com/plugins/email
John Arbash Meinel
john at arbash-meinel.com
Fri Jan 26 17:03:43 GMT 2007
------------------------------------------------------------
revno: 28
revision-id: john at arbash-meinel.com-20070126170329-r6jkjcigam173ay1
parent: john at arbash-meinel.com-20070126152332-4fnp2osfss3a4eoc
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: email
timestamp: Fri 2007-01-26 11:03:29 -0600
message:
Remove trailing whitespace.
modified:
README README-20051018071212-c081f89570802202
emailer.py emailer.py-20070123220937-ec5y2n2oeoa0p4ue-1
tests/test_smtp_connection.py test_smtp_connection-20070125220755-k6ueimjqwn16wvr9-2
tests/testemail.py testpublish.py-20051018071212-e3a53d78c05e0e0a
-------------- next part --------------
=== modified file 'README'
--- a/README 2007-01-26 15:23:32 +0000
+++ b/README 2007-01-26 17:03:29 +0000
@@ -2,7 +2,7 @@
This should eventually automatically activate if an email
address is set, and should allow format specifiers too.
-Until then, it is activated by setting
+Until then, it is activated by setting
post_commit=bzrlib.plugins.email.post_commit in bazaar.conf or locations.conf.
The plugin must be installed as "email" (i.e. ~/.bazaar/plugins/email/).
=== modified file 'emailer.py'
--- a/emailer.py 2007-01-26 15:23:32 +0000
+++ b/emailer.py 2007-01-26 17:03:29 +0000
@@ -209,7 +209,7 @@
self.send()
def subject(self):
- return ("Rev %d: %s in %s" %
+ return ("Rev %d: %s in %s" %
(self.revno,
self.revision.get_summary(),
self.url()))
=== modified file 'tests/test_smtp_connection.py'
--- a/tests/test_smtp_connection.py 2007-01-26 15:23:32 +0000
+++ b/tests/test_smtp_connection.py 2007-01-26 17:03:29 +0000
@@ -31,19 +31,19 @@
We don't want to actually connect or send messages, so this just
fakes it.
"""
-
+
class FakeSMTP(object):
"""Fakes an SMTP connection."""
-
+
def __init__(self, actions):
self.actions = actions
-
+
def sendmail(self, from_addr, to_addrs, msg):
self.actions.append(('sendmail', from_addr, to_addrs, msg))
-
+
def login(self, username, password):
self.actions.append(('login', username, password))
-
+
def __init__(self, config):
super(InstrumentedSMTPConnection, self).__init__(config)
self.actions = []
@@ -59,7 +59,7 @@
msg.set_boundary('=====123456==')
return msg, from_email, to_emails
-
+
class TestSMTPConnection(TestCase):
def get_connection(self, text):
@@ -105,7 +105,7 @@
def test_simple_send(self):
"""Test that we build up a reasonable looking email.
-
+
This also tests that we extract the right email addresses, etc, and it
gets passed to sendmail() with the right parameters.
"""
=== modified file 'tests/testemail.py'
--- a/tests/testemail.py 2007-01-25 22:08:12 +0000
+++ b/tests/testemail.py 2007-01-26 17:03:29 +0000
@@ -72,7 +72,7 @@
def test_command_line(self):
sender = self.get_sender()
- self.assertEqual(['mail', '-s', sender.subject(), '-a',
+ self.assertEqual(['mail', '-s', sender.subject(), '-a',
'From: ' + sender.from_address(), sender.to()],
sender._command_line())
@@ -134,7 +134,7 @@
def test_subject(self):
sender = self.get_sender()
- self.assertEqual("Rev 1: foo bar baz in %s" %
+ self.assertEqual("Rev 1: foo bar baz in %s" %
sender.branch.base,
sender.subject())
More information about the bazaar-commits
mailing list