[PATCH 1/4] Whitespace fixes

Sebastian Spaeth Sebastian at SSpaeth.de
Wed Apr 27 11:15:49 BST 2011


Just clean up lines which end in whitespaces.
Also adapt the copyright to the current year while touching the file.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 offlineimap/folder/Base.py |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py
index ad11158..657f975 100644
--- a/offlineimap/folder/Base.py
+++ b/offlineimap/folder/Base.py
@@ -1,6 +1,5 @@
 # Base folder support
-# Copyright (C) 2002 John Goerzen
-# <jgoerzen at complete.org>
+# Copyright (C) 2002-2011 John Goerzen & contributors
 #
 #    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
@@ -25,7 +24,7 @@ import traceback
 class BaseFolder:
     def __init__(self):
         self.ui = getglobalui()
-        
+
     def getname(self):
         """Returns name"""
         return self.name
@@ -74,7 +73,7 @@ class BaseFolder:
             return self.getroot() + self.getsep() + self.getname()
         else:
             return self.getname()
-    
+
     def getfolderbasename(self):
         foldername = self.getname()
         foldername = foldername.replace(self.repository.getsep(), '.')
@@ -97,7 +96,7 @@ class BaseFolder:
     def _getuidfilename(self):
         return os.path.join(self.repository.getuiddir(),
                             self.getfolderbasename())
-            
+
     def getsaveduidvalidity(self):
         if hasattr(self, '_base_saved_uidvalidity'):
             return self._base_saved_uidvalidity
@@ -262,7 +261,7 @@ class BaseFolder:
             
             # delete the negative uid message. We have it with a good UID now.
             self.deletemessage(uid)
-        
+
 
     def syncmessagesto_neguid(self, dstfolder, statusfolder):
         """Pass 1 of folder synchronization.
@@ -317,7 +316,7 @@ class BaseFolder:
             message = None
             flags = self.getmessageflags(uid)
             rtime = self.getmessagetime(uid)
-            
+
             if dstfolder.uidexists(uid):
                 # dst has message with that UID already, only update status
                 statusfolder.savemessage(uid, None, flags, rtime)
@@ -327,7 +326,7 @@ class BaseFolder:
             self.ui.copyingmessage(uid, self, [dstfolder])
 
             # If any of the destinations actually stores the message body,
-            # load it up.            
+            # load it up.
             if dstfolder.storesmessages():
                 message = self.getmessage(uid)
 
@@ -442,7 +441,7 @@ class BaseFolder:
             self.ui.deletingflags(delflaglist[flag], flag, dstfolder)
             dstfolder.deletemessagesflags(delflaglist[flag], [flag])
             statusfolder.deletemessagesflags(delflaglist[flag], [flag])
-                
+
     def syncmessagesto(self, dstfolder, statusfolder):
         """Syncs messages in this folder to the destination dstfolder.
 
@@ -466,7 +465,7 @@ class BaseFolder:
          uids present (except for potential negative uids that couldn't
          be placed anywhere).
 
-        Pass4: Synchronize flag changes 
+        Pass4: Synchronize flag changes
          Compare flag mismatches in self with those in statusfolder. If
          msg has a valid UID and exists on dstfolder (has not e.g. been
          deleted there), sync the flag change to both dstfolder and
@@ -490,5 +489,4 @@ class BaseFolder:
                 self.ui.warn("ERROR attempting to sync flags " \
                              + "for account " + self.getaccountname() \
                              + ":" + traceback.format_exc())
-
                 raise
-- 
1.7.4.1




More information about the OfflineIMAP-project mailing list