diff src/plugins/plugin_misc_imap.py @ 588:beaf6bec2fcd

Remove every old-style class.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:35 +0100
parents 952322b1d490
children e629371a28d3
line wrap: on
line diff
--- a/src/plugins/plugin_misc_imap.py	Fri Jan 18 17:55:34 2013 +0100
+++ b/src/plugins/plugin_misc_imap.py	Fri Jan 18 17:55:35 2013 +0100
@@ -49,7 +49,7 @@
 "description": _("""Create an Imap server that you can use to read your "normal" type messages""")
 }
 
-class IMAP_server():
+class IMAP_server(object):
     #TODO: connect profile on mailbox request, once password is accepted
 
     params = """
@@ -75,7 +75,7 @@
         self.server_factory = ImapServerFactory(self.host)
         reactor.listenTCP(port, self.server_factory)
 
-class Message():
+class Message(object):
     implements(imap4.IMessage)
 
     def __init__(self, uid, flags, mess_fp):
@@ -151,7 +151,7 @@
         return TypeError
 
 
-class SatMailbox:
+class SatMailbox(object):
     implements(imap4.IMailbox)
 
     def __init__(self,host,name,profile):
@@ -389,7 +389,7 @@
         return SatMailbox(self.host,name,self.profile)
 
 
-class ImapRealm:
+class ImapRealm(object):
     implements(portal.IRealm)
 
     def __init__(self,host):
@@ -402,7 +402,7 @@
             raise NotImplementedError
         return imap4.IAccount, ImapSatAccount(self.host,profile), lambda:None
 
-class SatProfileCredentialChecker:
+class SatProfileCredentialChecker(object):
     """
     This credential checker check against SàT's profile and associated jabber's password
     Check if the profile exists, and if the password is OK