We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78319e3 commit 5fc4f8aCopy full SHA for 5fc4f8a
Tools/peg_generator/pegen/keywordgen.py
@@ -67,8 +67,8 @@ def main():
67
all_keywords = sorted(list(gen.callmakervisitor.keyword_cache.keys()) + EXTRA_KEYWORDS)
68
all_soft_keywords = sorted(gen.callmakervisitor.soft_keywords)
69
70
- keywords = " " + ",\n ".join(map(repr, all_keywords))
71
- soft_keywords = " " + ",\n ".join(map(repr, all_soft_keywords))
+ keywords = "" if not all_keywords else " " + ",\n ".join(map(repr, all_keywords))
+ soft_keywords = "" if not all_soft_keywords else " " + ",\n ".join(map(repr, all_soft_keywords))
72
thefile.write(TEMPLATE.format(keywords=keywords, soft_keywords=soft_keywords))
73
74
0 commit comments