summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2013-11-22 14:20:33 +0100
committerFlorian Bruhin <git@the-compiler.org>2013-11-22 14:38:17 +0100
commitfa72b4260e86940a16460637d6422f55ae3e262d (patch)
treefb3ade35e90b75a5812c074e1724c1ce8aaad033
parentc95e574c49400b1728b0a0b192b4c11134258424 (diff)
downloadpyrmlint-alt_duplparse.tar.gz
pyrmlint-alt_duplparse.zip
-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: