Skip to content

Commit 01a7df2

Browse files
committed
fixup: change example
1 parent f93178f commit 01a7df2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stack/transferring-code.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,19 @@ this can be achieved by importing code from the destination repository with an a
8787
trivially repackaging it following the deprecation procedure described in
8888
:doc:`Deprecating Interfaces <deprecating-interfaces>`.
8989

90-
As an example, if a Python class `TreecorrConfig` is moved from package `origin` to package `destination`,
90+
As an example, if a Python class `ConfigurableAction` is moved from package `analysis_tools` (downstream) to `pex_config` (upstream),
9191

9292
.. code-block:: python
9393
94-
from lsst.destination import TreecorrConfig as TreecorrConfigNew
94+
from lsst.pex.config import ConfigurableAction as ConfigurableActionNew
9595
from depecated.sphinx import deprecated
9696
97-
__all__ = ["TreecorrConfig", ...]
97+
__all__ = ["ConfigurableAction"]
9898
99-
@deprecated(reason="Moved to lsst.destination",
99+
@deprecated(reason="Moved to lsst.pex.config",
100100
version="v22.0",
101101
category=FutureWarning)
102-
class TreecorrConfig(TreecorrConfigNew):
102+
class ConfigurableAction(ConfigurableActionNew):
103103
pass
104104
105105
In the relative less common case of moving code downstream, the following pattern can be used:

0 commit comments

Comments
 (0)