forked from osandov/drgn
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from delphix/projects/merge-upstream/master
Merge remote-tracking branch '6.0/stage' into 'master'
- Loading branch information
Showing
17 changed files
with
434 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
""" | ||
Common | ||
------ | ||
The ``drgn.helpers.common`` package provides helpers that can be used with any | ||
program. The helpers are available from the individual modules in which they | ||
are defined and from this top-level package. E.g., the following are both | ||
valid: | ||
>>> from drgn.helpers.common.memory import identify_address | ||
>>> from drgn.helpers.common import identify_address | ||
Some of these helpers may have additional program-specific behavior but are | ||
otherwise generic. | ||
""" | ||
|
||
import importlib | ||
import pkgutil | ||
from typing import List | ||
|
||
__all__: List[str] = [] | ||
for _module_info in pkgutil.iter_modules(__path__, prefix=__name__ + "."): | ||
_submodule = importlib.import_module(_module_info.name) | ||
_submodule_all = getattr(_submodule, "__all__", ()) | ||
__all__.extend(_submodule_all) | ||
for _name in _submodule_all: | ||
globals()[_name] = getattr(_submodule, _name) |
Oops, something went wrong.