summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyrmlint.py4
-rw-r--r--testout.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/pyrmlint.py b/pyrmlint.py
index 9e0fa63..1e9a91e 100644
--- a/pyrmlint.py
+++ b/pyrmlint.py
@@ -50,8 +50,8 @@ class Logreader:
fobj = File()
fobj.fromlog(line)
self.data[fobj.dupflag].append(fobj)
- if fobj.dupflag in ['ORIG', 'DUPL']:
- self._parsedupl(fobj)
+ self._parsedupl(fobj)
+ self.duplicates.append(self._duplist[:])
def main():
pass
diff --git a/testout.py b/testout.py
index 6383a1a..f8032be 100644
--- a/testout.py
+++ b/testout.py
@@ -23,7 +23,7 @@ for lst in r.data.values():
sys.stdout.buffer.write(out + b'\n')
sys.stdout.flush()
for dupl in r.duplicates:
- for i, f in enumerate(dupl):
+ for i, fobj in enumerate(dupl):
if i == 0:
fobj.dupflag = 'ORIG'
else: