From 5aa8f70d4ee8b3d40d5caf69c42c67d4fd4f0118 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 19 Oct 2013 22:08:37 -0400 Subject: Generator expressons are ok now. --- coverage/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/config.py') diff --git a/coverage/config.py b/coverage/config.py index 87318ff..6223afd 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -25,7 +25,7 @@ class HandyConfigParser(configparser.RawConfigParser): def dollar_replace(m): """Called for each $replacement.""" # Only one of the groups will have matched, just get its text. - word = [w for w in m.groups() if w is not None][0] + word = next(w for w in m.groups() if w is not None) if word == "$": return "$" else: -- cgit v1.2.1