Skip to content

Commit

Permalink
Match current python's keywords in axdebug.codecontainer (#2439)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Dec 23, 2024
1 parent adf9cfb commit f4bf147
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions com/win32comext/axdebug/codecontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import os
import sys
import tokenize
from keyword import kwlist
from typing import Any

import win32api
Expand All @@ -17,13 +18,13 @@
from win32com.axdebug.util import _wrap
from win32com.server.exception import COMException

_keywords = {} # set of Python keywords
for name in """
and assert break class continue def del elif else except exec
finally for from global if import in is lambda not
or pass print raise return try while
""".split():
_keywords[name] = 1
_keywords = {
_keyword
for _keyword in kwlist
# Avoids including True/False/None
if _keyword.islower()
}
"""set of Python keywords"""


class SourceCodeContainer:
Expand Down

0 comments on commit f4bf147

Please sign in to comment.