Do not make object inheritance
This patch removes these lintian warnings: Warning R0205: Class 'X' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
This commit is contained in:
@ -510,7 +510,7 @@ class IMAPRepository(BaseRepository):
|
||||
"""Converts a cmp= function into a key= function
|
||||
We need to keep cmp functions for backward compatibility"""
|
||||
|
||||
class K(object):
|
||||
class K():
|
||||
def __init__(self, obj, *args):
|
||||
self.obj = obj
|
||||
|
||||
|
@ -30,7 +30,7 @@ from offlineimap.repository.LocalStatus import LocalStatusRepository
|
||||
from offlineimap.error import OfflineImapError
|
||||
|
||||
|
||||
class Repository(object):
|
||||
class Repository():
|
||||
"""Abstract class that returns the correct Repository type
|
||||
instance based on 'account' and 'reqtype', e.g. a
|
||||
class:`ImapRepository` instance."""
|
||||
|
Reference in New Issue
Block a user