Comments.

This commit is contained in:
David Keegan 2013-11-01 23:11:53 +00:00
parent cb046e1c57
commit 79dc45e7c6

View file

@ -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()