summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-03-01 11:18:09 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-03-01 11:18:09 +0100
commit9b77a7fd5a05a4052001b698e34f2599c34fe5d0 (patch)
tree73a290852d3de1d7d88898d9f24da0f1aac976c1
parentb08c9d1dad4852834e1994177ab070975c67e15f (diff)
downloadpykolab-9b77a7fd5a05a4052001b698e34f2599c34fe5d0.tar.gz
Fix even more compliance issues
-rw-r--r--pykolab/imap/cyrus.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pykolab/imap/cyrus.py b/pykolab/imap/cyrus.py
index 7807af0..b0c58c0 100644
--- a/pykolab/imap/cyrus.py
+++ b/pykolab/imap/cyrus.py
@@ -372,11 +372,11 @@ class Cyrus(cyruslib.CYRUS):
self.xfer(mailfolder, new_server)
def undelete_mailfolder(
- self,
- mailfolder,
- to_mailfolder=None,
- recursive=True
- ):
+ self,
+ mailfolder,
+ to_mailfolder=None,
+ recursive=True
+ ):
"""
Login to the actual backend server, then "undelete" the mailfolder.
@@ -458,7 +458,7 @@ class Cyrus(cyruslib.CYRUS):
target_server = self.find_mailfolder_server(target_folder)
if hasattr(conf, 'dry_run') and not conf.dry_run:
- if not target_server == self.server:
+ if target_server is not self.server:
self.xfer(undelete_folder, target_server)
self.rename(undelete_folder, target_folder)