diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2014-11-16 00:14:11 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2014-11-16 00:14:11 +0200 |
commit | 2463787cccad9d7eae91f128dc6cc3c9f6ad0324 (patch) | |
tree | 3d2d5e4b32505e20379c48871af4f535f8ab342e | |
parent | 762a5332b4d2a78cf9f2580da7ad688458fc1cf3 (diff) | |
download | pylint-2463787cccad9d7eae91f128dc6cc3c9f6ad0324.tar.gz |
Simplify the chaining of stats in _parallel_check.
-rw-r--r-- | lint.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -37,6 +37,7 @@ from collections import defaultdict from contextlib import contextmanager from operator import attrgetter from warnings import warn +from itertools import chain try: import multiprocessing except ImportError: @@ -720,9 +721,7 @@ class PyLinter(OptionsManagerMixIn, MessagesHandlerMixIn, ReportsHandlerMixIn, all_stats.append(stats) self.msg_status |= msg_status - all_stats.append(self.stats) - all_stats = _merge_stats(all_stats) - self.stats = all_stats + self.stats = _merge_stats(chain(all_stats, [self.stats])) self.current_name = last_module # Insert stats data to local checkers. |