← Back to team overview

banking-addons-team team mailing list archive

[Merge] lp:~therp-nl/banking-addons/6.1_mt940_line_endings into lp:banking-addons/6.1

 

Holger Brunn (Therp) has proposed merging lp:~therp-nl/banking-addons/6.1_mt940_line_endings into lp:banking-addons/6.1.

Requested reviews:
  Banking Addons Core Editors (banking-addons-team)

For more details, see:
https://code.launchpad.net/~therp-nl/banking-addons/6.1_mt940_line_endings/+merge/223755
-- 
https://code.launchpad.net/~therp-nl/banking-addons/6.1_mt940_line_endings/+merge/223755
Your team Banking Addons Core Editors is requested to review the proposed merge of lp:~therp-nl/banking-addons/6.1_mt940_line_endings into lp:banking-addons/6.1.
=== modified file 'account_banking_mt940/mt940.py'
--- account_banking_mt940/mt940.py	2014-02-28 10:54:35 +0000
+++ account_banking_mt940/mt940.py	2014-06-19 14:15:32 +0000
@@ -75,7 +75,7 @@
 
     def parse(self, cr, data):
         'implements account_banking.parsers.models.parser.parse()'
-        iterator = data.split('\r\n').__iter__()
+        iterator = data.replace('\r\n', '\n').split('\n').__iter__()
         line = None
         record_line = ''
         try:


Follow ups