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:
|
for Line in Af:
|
||||||
RtNew = Transaction(self, Line)
|
RtNew = Transaction(self, Line)
|
||||||
if RtNew:
|
if RtNew:
|
||||||
|
# Line is start of new transaction.
|
||||||
self._Nrt = self._Nrt + 1
|
self._Nrt = self._Nrt + 1
|
||||||
if Rt is not None: self._Rtl.append(Rt)
|
if Rt is not None: self._Rtl.append(Rt)
|
||||||
Rt = RtNew
|
Rt = RtNew
|
||||||
else:
|
else:
|
||||||
|
# Line does not start a transaction.
|
||||||
if self._Nrt <= 0:
|
if self._Nrt <= 0:
|
||||||
# Append to preamble.
|
# Append to preamble.
|
||||||
self._Preamble = self._Preamble + Line
|
self._Preamble = self._Preamble + Line
|
||||||
else:
|
else:
|
||||||
|
# Line continues a transaction.
|
||||||
Rt.Add(Line)
|
Rt.Add(Line)
|
||||||
if Rt is not None: self._Rtl.append(Rt)
|
if Rt is not None: self._Rtl.append(Rt)
|
||||||
Af.close()
|
Af.close()
|
||||||
|
|
Loading…
Reference in a new issue