[Python-checkins] r45641 - in python/trunk/Lib: mailbox.py test/test_mailbox.py

tim.peters python-checkins at python.org
Sat Apr 22 07:53:00 CEST 2006


Author: tim.peters
Date: Sat Apr 22 07:52:59 2006
New Revision: 45641

Modified:
   python/trunk/Lib/mailbox.py
   python/trunk/Lib/test/test_mailbox.py
Log:
Whitespace normalization.


Modified: python/trunk/Lib/mailbox.py
==============================================================================
--- python/trunk/Lib/mailbox.py	(original)
+++ python/trunk/Lib/mailbox.py	Sat Apr 22 07:52:59 2006
@@ -266,7 +266,7 @@
             if e.errno == errno.ENOENT:
                 pass
             else:
-                raise 
+                raise
 
     def __setitem__(self, key, message):
         """Replace the keyed message; raise KeyError if it doesn't exist."""
@@ -1641,7 +1641,7 @@
             self._labels.remove(label)
         except ValueError:
             pass
-    
+
     def get_visible(self):
         """Return a Message representation of visible headers."""
         return Message(self._visible)
@@ -1840,7 +1840,7 @@
             except OSError, e:
                 if e.errno == errno.EEXIST:
                     os.remove(pre_lock.name)
-                    raise ExternalClashError('dot lock unavailable: %s' % 
+                    raise ExternalClashError('dot lock unavailable: %s' %
                                              f.name)
                 else:
                     raise

Modified: python/trunk/Lib/test/test_mailbox.py
==============================================================================
--- python/trunk/Lib/test/test_mailbox.py	(original)
+++ python/trunk/Lib/test/test_mailbox.py	Sat Apr 22 07:52:59 2006
@@ -1380,7 +1380,7 @@
         msg.update_visible()
         for label in ('unseen', 'deleted', 'filed', 'answered', 'forwarded',
                       'edited', 'resent'):
-            msg.add_label(label)       
+            msg.add_label(label)
         msg2 = mailbox.BabylMessage(msg)
         self.assert_(msg2.get_labels() == ['unseen', 'deleted', 'filed',
                                            'answered', 'forwarded', 'edited',
@@ -1673,17 +1673,17 @@
 X-Original-To: gkj+person at localhost
 Delivered-To: gkj+person at localhost
 Received: from localhost (localhost [127.0.0.1])
-	by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17
-	for <gkj+person at localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)
+        by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17
+        for <gkj+person at localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)
 Delivered-To: gkj at sundance.gregorykjohnson.com
 Received: from localhost [127.0.0.1]
-	by localhost with POP3 (fetchmail-6.2.5)
-	for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)
+        by localhost with POP3 (fetchmail-6.2.5)
+        for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)
 Received: from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])
-	by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746
-	for <gkj at gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)
+        by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746
+        for <gkj at gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)
 Received: by andy.gregorykjohnson.com (Postfix, from userid 1000)
-	id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)
+        id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)
 Date: Wed, 13 Jul 2005 17:23:11 -0400
 From: "Gregory K. Johnson" <gkj at gregorykjohnson.com>
 To: gkj at gregorykjohnson.com
@@ -1701,7 +1701,7 @@
 
 This is a sample message.
 
--- 
+--
 Gregory K. Johnson
 
 --NMuMz9nt05w80d4+
@@ -1720,17 +1720,17 @@
     "X-Original-To":"gkj+person at localhost",
     "Delivered-To":"gkj+person at localhost",
     "Received":"""from localhost (localhost [127.0.0.1])
-	by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17
-	for <gkj+person at localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)""",
+        by andy.gregorykjohnson.com (Postfix) with ESMTP id 356ED9DD17
+        for <gkj+person at localhost>; Wed, 13 Jul 2005 17:23:16 -0400 (EDT)""",
     "Delivered-To":"gkj at sundance.gregorykjohnson.com",
     "Received":"""from localhost [127.0.0.1]
-	by localhost with POP3 (fetchmail-6.2.5)
-	for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)""",
+        by localhost with POP3 (fetchmail-6.2.5)
+        for gkj+person at localhost (single-drop); Wed, 13 Jul 2005 17:23:16 -0400 (EDT)""",
     "Received":"""from andy.gregorykjohnson.com (andy.gregorykjohnson.com [64.32.235.228])
-	by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746
-	for <gkj at gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)""",
+        by sundance.gregorykjohnson.com (Postfix) with ESMTP id 5B056316746
+        for <gkj at gregorykjohnson.com>; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)""",
     "Received":"""by andy.gregorykjohnson.com (Postfix, from userid 1000)
-	id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)""",
+        id 490CD9DD17; Wed, 13 Jul 2005 17:23:11 -0400 (EDT)""",
     "Date":"Wed, 13 Jul 2005 17:23:11 -0400",
     "From":""""Gregory K. Johnson" <gkj at gregorykjohnson.com>""",
     "To":"gkj at gregorykjohnson.com",
@@ -1742,7 +1742,7 @@
 
 _sample_payloads = ("""This is a sample message.
 
--- 
+--
 Gregory K. Johnson
 """,
 """H4sICM2D1UIAA3RleHQAC8nILFYAokSFktSKEoW0zJxUPa7wzJIMhZLyfIWczLzUYj0uAHTs


More information about the Python-checkins mailing list