Reformat offlineimap/contrib/ all files

Add some spaces, remove lines,... now format is better (lintian).
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-29 20:33:37 +02:00
parent bcc497df16
commit ad53e6f7ab
3 changed files with 43 additions and 48 deletions

View File

@ -8,10 +8,10 @@ Make a new release.
""" """
#TODO: announce: cc list on announce includes all testers # TODO: announce: cc list on announce includes all testers
#TODO: announce: remove empty sections # TODO: announce: remove empty sections
#TODO: websitedoc up # TODO: websitedoc up
#TODO: website branch not including all changes! # TODO: website branch not including all changes!
from os import system, path, rename from os import system, path, rename
@ -25,7 +25,6 @@ from helpers import (
MAILING_LIST, CACHEDIR, EDITOR, Git, OfflineimapInfo, Testers, User, run, goTo MAILING_LIST, CACHEDIR, EDITOR, Git, OfflineimapInfo, Testers, User, run, goTo
) )
__VERSION__ = "0.2" __VERSION__ = "0.2"
SPHINXBUILD = 'sphinx-build' SPHINXBUILD = 'sphinx-build'
@ -211,7 +210,7 @@ class Changelog(object):
if currentSection is not None: if currentSection is not None:
dict_Content[currentSection] += "{}\n".format(line) dict_Content[currentSection] += "{}\n".format(line)
#TODO: cleanup empty sections. # TODO: cleanup empty sections.
return dict_Content return dict_Content
@ -342,7 +341,6 @@ class Release(object):
self.changelog = Changelog() self.changelog = Changelog()
self.websiteBranch = "NO_BRANCH_NAME_ERROR" self.websiteBranch = "NO_BRANCH_NAME_ERROR"
def getVersion(self): def getVersion(self):
return self.offlineimapInfo.getVersion() return self.offlineimapInfo.getVersion()

View File

@ -20,7 +20,6 @@ class App(object):
self.testers = Testers() self.testers = Testers()
self.feedbacks = None self.feedbacks = None
def _getTestersByFeedback(self): def _getTestersByFeedback(self):
if self.feedbacks is not None: if self.feedbacks is not None:
return self.feedbacks return self.feedbacks
@ -91,7 +90,6 @@ class App(object):
if ans in ['s']: if ans in ['s']:
self.testers.write() self.testers.write()
def listTesters(self): def listTesters(self):
self._getTestersByFeedback() self._getTestersByFeedback()
@ -132,7 +130,8 @@ class App(object):
self.testers.reset() self.testers.reset()
self.testers.write() self.testers.write()
#def updateMailaliases(self): # def updateMailaliases(self):
if __name__ == '__main__': if __name__ == '__main__':
Git.chdirToRepositoryTopLevel() Git.chdirToRepositoryTopLevel()

View File

@ -14,29 +14,27 @@ from helpers import (
MAILING_LIST, CACHEDIR, EDITOR, Testers, Git, OfflineimapInfo, User MAILING_LIST, CACHEDIR, EDITOR, Testers, Git, OfflineimapInfo, User
) )
UPCOMING_FILE = "{}/upcoming.txt".format(CACHEDIR) UPCOMING_FILE = "{}/upcoming.txt".format(CACHEDIR)
UPCOMING_HEADER = "{}/upcoming-header.txt".format(CACHEDIR) UPCOMING_HEADER = "{}/upcoming-header.txt".format(CACHEDIR)
# Header is like: # Header is like:
# #
#Message-Id: <{messageId}> # Message-Id: <{messageId}>
#Date: {date} # Date: {date}
#From: {name} <{email}> # From: {name} <{email}>
#To: {mailinglist} # To: {mailinglist}
#Cc: {ccList} # Cc: {ccList}
#Subject: [ANNOUNCE] upcoming offlineimap v{expectedVersion} # Subject: [ANNOUNCE] upcoming offlineimap v{expectedVersion}
# #
## Notes ## Notes
# #
#I think it's time for a new release. # I think it's time for a new release.
# #
#I aim to make the new release in one week, approximately. If you'd like more # I aim to make the new release in one week, approximately. If you'd like more
#time, please let me know. ,-) # time, please let me know. ,-)
# #
#Please, send me a mail to confirm it works for you. This will be written in the # Please, send me a mail to confirm it works for you. This will be written in the
#release notes and the git logs. # release notes and the git logs.
# #
# #
## Authors ## Authors