From c8955bee5e3eacc8c96a87ad22b871092ba81dba Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 6 Nov 2016 19:18:21 +0100 Subject: [PATCH] Remove double-iteratation over logfiles by passing the iterator returned by glob.glob direclty to _bundle_logs --- tsstats/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsstats/log.py b/tsstats/log.py index f7bf6fe..c5ce0a1 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -44,7 +44,7 @@ def parse_logs(log_glob, ident_map=None, online_dc=True, *args, **kwargs): ''' vserver_clients = {} for virtualserver_id, logs in\ - _bundle_logs(log_file for log_file in glob(log_glob)).items(): + _bundle_logs(glob(log_glob)).items(): clients = Clients(ident_map) # keep last log out of the iteration for now for log in logs[:-1]: