summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-19 22:08:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-19 22:08:37 -0400
commitbad63e02b113626a048ea5eb253293c61902e291 (patch)
treeefb98eaafdf9d9212b53a1e51a782f7ff00cca41 /coverage/config.py
parentb3df60a544a54b4dd604d34137ff08e02b815e81 (diff)
downloadpython-coveragepy-git-bad63e02b113626a048ea5eb253293c61902e291.tar.gz
Generator expressons are ok now.
--HG-- branch : 4.0
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 87318ff1..6223afda 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: