-
Notifications
You must be signed in to change notification settings - Fork 37
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 #82 from martinhoyer/fb-compatibility
Improve backwards configshell-fb compatibility
- Loading branch information
Showing
6 changed files
with
35 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,6 @@ debian/tmp/ | |
*.pyc | ||
rtslib-* | ||
venv/ | ||
.venv/ | ||
.idea | ||
*egg-info/ |
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
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 |
---|---|---|
@@ -1,12 +1,21 @@ | ||
# Providing backwards compatibility for modules importing 'configshell_fb' | ||
|
||
from configshell import ConfigNode, ConfigShell, Console, ExecutionError, Log, Prefs | ||
|
||
__all__ = [ | ||
'Console', | ||
'Log', | ||
'ConfigNode', | ||
'ExecutionError', | ||
'Prefs', | ||
'ConfigShell', | ||
] | ||
""" | ||
configshell_fb.py - Backwards compatibility module for configshell | ||
This module provides backwards compatibility for code that imports 'configshell_fb'. | ||
It re-exports all public names from the 'configshell' module. | ||
Usage: | ||
from configshell_fb import ConfigNode, Log, Console # etc. | ||
Note: This compatibility layer may be deprecated in future versions. | ||
Please consider updating your imports to use 'configshell' directly. | ||
""" | ||
|
||
import configshell | ||
from configshell import * # noqa: F403 | ||
|
||
# Explicitly import and re-export submodules | ||
from configshell import console, log, node, prefs, shell # noqa: F401 | ||
|
||
# Re-export all public names from configshell | ||
__all__ = configshell.__all__ |
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