init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
25
.venv/lib/python3.8/site-packages/executing/__init__.py
Normal file
25
.venv/lib/python3.8/site-packages/executing/__init__.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"""
|
||||
Get information about what a frame is currently doing. Typical usage:
|
||||
|
||||
import executing
|
||||
|
||||
node = executing.Source.executing(frame).node
|
||||
# node will be an AST node or None
|
||||
"""
|
||||
|
||||
from collections import namedtuple
|
||||
_VersionInfo = namedtuple('VersionInfo', ('major', 'minor', 'micro'))
|
||||
from .executing import Source, Executing, only, NotOneValueFound, cache, future_flags
|
||||
try:
|
||||
from .version import __version__
|
||||
if "dev" in __version__:
|
||||
raise ValueError
|
||||
except Exception:
|
||||
# version.py is auto-generated with the git tag when building
|
||||
__version__ = "???"
|
||||
__version_info__ = _VersionInfo(-1, -1, -1)
|
||||
else:
|
||||
__version_info__ = _VersionInfo(*map(int, __version__.split('.')))
|
||||
|
||||
|
||||
__all__ = ["Source"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue