summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-08-18 17:57:37 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-08-18 17:57:37 +0300
commitd7e8af6708e3936dbb7a9ac16b55a11f5ccf2fed (patch)
tree284b6043bbbb0d906e490ba43cb0afd00319b010 /utils.py
parent4464df0723ce8eac57ca8ac7be42ec832445dec9 (diff)
downloadpylint-git-d7e8af6708e3936dbb7a9ac16b55a11f5ccf2fed.tar.gz
Add the current reporter only if it was removed.
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index deef4869b..9a7189e0c 100644
--- a/utils.py
+++ b/utils.py
@@ -652,7 +652,8 @@ class ReportsHandlerMixIn(object):
reports.pop(reports.index(self))
except ValueError:
pass
- reports.append(self)
+ else:
+ reports.append(self)
return reports
def register_report(self, reportid, r_title, r_cb, checker):