mirror of
https://github.com/davidkeegan/dklrt
synced 2024-12-25 09:59:19 +01:00
Comments.
This commit is contained in:
parent
cb046e1c57
commit
79dc45e7c6
1 changed files with 3 additions and 0 deletions
|
@ -128,14 +128,17 @@ class Transactions:
|
|||
for Line in Af:
|
||||
RtNew = Transaction(self, Line)
|
||||
if RtNew:
|
||||
# Line is start of new transaction.
|
||||
self._Nrt = self._Nrt + 1
|
||||
if Rt is not None: self._Rtl.append(Rt)
|
||||
Rt = RtNew
|
||||
else:
|
||||
# Line does not start a transaction.
|
||||
if self._Nrt <= 0:
|
||||
# Append to preamble.
|
||||
self._Preamble = self._Preamble + Line
|
||||
else:
|
||||
# Line continues a transaction.
|
||||
Rt.Add(Line)
|
||||
if Rt is not None: self._Rtl.append(Rt)
|
||||
Af.close()
|
||||
|
|
Loading…
Reference in a new issue