Skip to content

Commit

Permalink
Merge pull request #3926 from ales-erjavec/backcompat-stubs
Browse files Browse the repository at this point in the history
[FIX] Backcompatibility stubs
  • Loading branch information
lanzagar authored Jul 12, 2019
2 parents 8a01b2a + 3c06d1b commit 15d4fe6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Orange/canvas/report.py
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
11 changes: 11 additions & 0 deletions Orange/canvas/utils/environ.py
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()

0 comments on commit 15d4fe6

Please sign in to comment.