diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 22:08:37 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 22:08:37 -0400 |
commit | bad63e02b113626a048ea5eb253293c61902e291 (patch) | |
tree | efb98eaafdf9d9212b53a1e51a782f7ff00cca41 /coverage/config.py | |
parent | b3df60a544a54b4dd604d34137ff08e02b815e81 (diff) | |
download | python-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.py | 2 |
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: |