-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #3926 from ales-erjavec/backcompat-stubs
[FIX] Backcompatibility stubs
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import sys | ||
import warnings | ||
import Orange.widgets.report | ||
|
||
warnings.warn( | ||
f"'{__name__}' is deprecated and will be removed in the future.\n" | ||
"The contents of this package were moved to 'Orange.widgets.report'. " | ||
"Please update the imports accordingly.", | ||
FutureWarning, stacklevel=2 | ||
) | ||
sys.modules[__name__] = Orange.widgets.report |
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,11 @@ | ||
import warnings | ||
|
||
from Orange.misc import environ | ||
|
||
warnings.warn( | ||
f"'{__name__}' is deprecated and will be removed on the future. " | ||
"Use 'Orange.misc.environ' instead", | ||
FutureWarning, stacklevel=2 | ||
) | ||
buffer_dir = environ.cache_dir() | ||
widget_settings_dir = environ.widget_settings_dir() |