Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -36,11 +36,13 @@ class AccountNotFound(UserError):
|
|||
def __init__(self, msg='Account not found'):
|
||||
UserError.__init__(self, msg)
|
||||
|
||||
|
||||
class TransferError(UserError):
|
||||
"""
|
||||
A transfer has failed.
|
||||
"""
|
||||
|
||||
|
||||
class Currency(object):
|
||||
CUR_UNKNOWN = 0
|
||||
CUR_EUR = 1
|
||||
|
|
@ -92,6 +94,7 @@ class Recipient(CapBaseObject):
|
|||
def __init__(self):
|
||||
CapBaseObject.__init__(self, 0)
|
||||
|
||||
|
||||
class Account(Recipient, Currency):
|
||||
"""
|
||||
Bank account.
|
||||
|
|
@ -144,6 +147,7 @@ class Transaction(CapBaseObject):
|
|||
return "<Transaction date='%s' label='%s' amount=%s>" % (self.date,
|
||||
label, self.amount)
|
||||
|
||||
|
||||
class Transfer(CapBaseObject):
|
||||
"""
|
||||
Transfer from an account to a recipient.
|
||||
|
|
@ -155,6 +159,7 @@ class Transfer(CapBaseObject):
|
|||
recipient = Field('Recipient', int, long, basestring)
|
||||
reason = StringField('Reason')
|
||||
|
||||
|
||||
class ICapBank(ICapCollection):
|
||||
"""
|
||||
Capability of bank websites to see accounts and transactions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue