pep8 blank lines fixes
flake8 --select W391,E302,E301,E304 autopep8 can't fix W391 even though it claims it can. Fixed using a simple custom script.
This commit is contained in:
parent
be2c8bd789
commit
448c06d125
142 changed files with 249 additions and 25 deletions
|
|
@ -105,6 +105,7 @@ class OfxFormatter(IFormatter):
|
|||
self.output(u'<DTASOF>%s</AVAILBAL>' % datetime.date.today().strftime('%Y%m%d'))
|
||||
self.output(u'</STMTRS></STMTTRNRS></BANKMSGSRSV1></OFX>')
|
||||
|
||||
|
||||
class QifFormatter(IFormatter):
|
||||
MANDATORY_FIELDS = ('id', 'date', 'raw', 'amount')
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ class HistoryFormatter(IFormatter):
|
|||
self.colored('%-17s' % (obj.location or ''), 'magenta'),
|
||||
self.colored(obj.activity or '', 'yellow'))
|
||||
|
||||
|
||||
class StatusFormatter(IFormatter):
|
||||
MANDATORY_FIELDS = ('id',)
|
||||
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ class ContactThread(QWidget):
|
|||
return
|
||||
|
||||
self.ui.refreshButton.setEnabled(False)
|
||||
|
||||
def finished():
|
||||
#v = self.ui.scrollArea.verticalScrollBar()
|
||||
#print v.minimum(), v.value(), v.maximum(), v.sliderPosition()
|
||||
|
|
@ -572,6 +573,7 @@ class ContactsWidget(QWidget):
|
|||
def retrieveContact(self, url):
|
||||
backend_name = unicode(self.ui.backendsList.currentText())
|
||||
self.ui.urlButton.setEnabled(False)
|
||||
|
||||
def finished():
|
||||
self.url_process = None
|
||||
self.ui.urlButton.setEnabled(True)
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ class EventsWidget(QWidget):
|
|||
self.ui.typeBox.setEnabled(False)
|
||||
self.ui.typeBox.clear()
|
||||
self.ui.typeBox.addItem('All', None)
|
||||
|
||||
def finished():
|
||||
self.ui.refreshButton.setEnabled(True)
|
||||
self.ui.typeBox.setEnabled(True)
|
||||
|
|
|
|||
|
|
@ -56,12 +56,14 @@ class DeparturesFormatter(PrettyFormatter):
|
|||
|
||||
return s
|
||||
|
||||
|
||||
class StationsFormatter(PrettyFormatter):
|
||||
MANDATORY_FIELDS = ('id', 'name')
|
||||
|
||||
def get_title(self, obj):
|
||||
return obj.name
|
||||
|
||||
|
||||
class Traveloob(ReplApplication):
|
||||
APPNAME = 'traveloob'
|
||||
VERSION = '1.0'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue