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:
@ -39,7 +39,7 @@ def goTo(path):
|
||||
return False
|
||||
|
||||
|
||||
class Author(object):
|
||||
class Author():
|
||||
def __init__(self, name, count, email):
|
||||
self.name = name
|
||||
self.count = count
|
||||
@ -55,7 +55,7 @@ class Author(object):
|
||||
return self.email
|
||||
|
||||
|
||||
class Git(object):
|
||||
class Git():
|
||||
@staticmethod
|
||||
def getShortlog(ref):
|
||||
shortlog = ""
|
||||
@ -199,7 +199,7 @@ class Git(object):
|
||||
chdir(topLevel)
|
||||
|
||||
|
||||
class OfflineimapInfo(object):
|
||||
class OfflineimapInfo():
|
||||
def getVersion(self):
|
||||
cmd = shlex.split("./offlineimap.py --version")
|
||||
return run(cmd).rstrip().decode(FS_ENCODING)
|
||||
@ -209,7 +209,7 @@ class OfflineimapInfo(object):
|
||||
|
||||
|
||||
|
||||
class User(object):
|
||||
class User():
|
||||
"""Interact with the user."""
|
||||
|
||||
@staticmethod
|
||||
@ -235,7 +235,7 @@ class User(object):
|
||||
return False
|
||||
|
||||
|
||||
class Tester(object):
|
||||
class Tester():
|
||||
def __init__(self, name, email, feedback):
|
||||
self.name = name
|
||||
self.email = email
|
||||
@ -264,7 +264,7 @@ class Tester(object):
|
||||
self.feedback = not self.feedback
|
||||
|
||||
|
||||
class Testers(object):
|
||||
class Testers():
|
||||
def __init__(self):
|
||||
self.testers = None
|
||||
self._read()
|
||||
|
@ -89,7 +89,7 @@ Have fun! ,-)
|
||||
"""
|
||||
|
||||
|
||||
class State(object):
|
||||
class State():
|
||||
def __init__(self):
|
||||
self.master = None
|
||||
self.next = None
|
||||
@ -129,7 +129,7 @@ class State(object):
|
||||
goTo('..')
|
||||
|
||||
|
||||
class Changelog(object):
|
||||
class Changelog():
|
||||
def __init__(self):
|
||||
self.shouldUsePrevious = False
|
||||
|
||||
@ -214,7 +214,7 @@ class Changelog(object):
|
||||
return dict_Content
|
||||
|
||||
|
||||
class Announce(object):
|
||||
class Announce():
|
||||
def __init__(self, version):
|
||||
self.fd = open(ANNOUNCE_FILE, 'w')
|
||||
self.version = version
|
||||
@ -258,7 +258,7 @@ Pip:
|
||||
self.fd.close()
|
||||
|
||||
|
||||
class Website(object):
|
||||
class Website():
|
||||
def updateUploads(self):
|
||||
req = ("add new archive to uploads/ on the website? "
|
||||
"(warning: checksums will change if it already exists)")
|
||||
@ -333,7 +333,7 @@ Then, commit and push changes of the website.""".format(SPHINXBUILD, DOCSDIR)))
|
||||
return branchName
|
||||
|
||||
|
||||
class Release(object):
|
||||
class Release():
|
||||
def __init__(self):
|
||||
self.state = State()
|
||||
self.offlineimapInfo = OfflineimapInfo()
|
||||
|
@ -14,7 +14,7 @@ import argparse
|
||||
from helpers import CACHEDIR, EDITOR, Testers, User, Git
|
||||
|
||||
|
||||
class App(object):
|
||||
class App():
|
||||
def __init__(self):
|
||||
self.args = None
|
||||
self.testers = Testers()
|
||||
|
Reference in New Issue
Block a user