summaryrefslogtreecommitdiff
path: root/pygments/styles
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2020-09-06 14:35:14 +0200
committerGitHub <noreply@github.com>2020-09-06 14:35:14 +0200
commit40baa94a6bf0c62be8c8b03a942116869ce80128 (patch)
tree50eca3f33e60a4bbadd29bf566b294052e509259 /pygments/styles
parented93a2758bdfbeaafc43ac59a611bf2cff92b55c (diff)
downloadpygments-git-40baa94a6bf0c62be8c8b03a942116869ce80128.tar.gz
all: use yield from (#1537)
Diffstat (limited to 'pygments/styles')
-rw-r--r--pygments/styles/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pygments/styles/__init__.py b/pygments/styles/__init__.py
index b856f09b..6bb08154 100644
--- a/pygments/styles/__init__.py
+++ b/pygments/styles/__init__.py
@@ -81,7 +81,6 @@ def get_style_by_name(name):
def get_all_styles():
"""Return an generator for all styles by name,
both builtin and plugin."""
- for name in STYLE_MAP:
- yield name
+ yield from STYLE_MAP
for name, _ in find_plugin_styles():
yield name