mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
please flake8 about blank lines
This commit is contained in:
@@ -29,11 +29,11 @@ __doc__ = '''Ease working with fixed length records in files'''
|
||||
import unicodedata
|
||||
from datetime import datetime, date
|
||||
|
||||
|
||||
def strpdate(str, format):
|
||||
return datetime.strptime(str, format).date()
|
||||
|
||||
|
||||
|
||||
class Field(object):
|
||||
'''Base Field class - fixed length left aligned string field in a record'''
|
||||
def __init__(self, name, length=1, fillchar=' ', cast=str):
|
||||
|
||||
@@ -31,7 +31,6 @@ from openerp.osv import orm, fields
|
||||
from openerp.tools.translate import _
|
||||
|
||||
|
||||
|
||||
class banking_transaction_wizard(orm.TransientModel):
|
||||
_name = 'banking.transaction.wizard'
|
||||
_description = 'Match transaction'
|
||||
|
||||
@@ -7,6 +7,7 @@ import logging
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def fixchars(line):
|
||||
"""Fix the characters mangled in the input
|
||||
|
||||
|
||||
@@ -28,8 +28,10 @@ import re
|
||||
from datetime import datetime
|
||||
import logging
|
||||
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class HSBCParser(object):
|
||||
|
||||
def __init__(self):
|
||||
|
||||
@@ -33,6 +33,7 @@ from openerp.tools.translate import _
|
||||
|
||||
from . import paymul
|
||||
|
||||
|
||||
def strpdate(arg, format='%Y-%m-%d'):
|
||||
"""shortcut"""
|
||||
return datetime.strptime(arg, format).date()
|
||||
|
||||
Reference in New Issue
Block a user