Skip to content

Commit

Permalink
Adding support for future migration to __init__.py
Browse files Browse the repository at this point in the history
v1.2.0 will migrate `Door`->`PorchlightAdapter` and
`Neighborhood`->`PorchlightMediator`. For information about that change,
you'll need to see the eventual issue ticket/pull request for that.
  • Loading branch information
teald committed Apr 13, 2023
1 parent 7d98b56 commit 54bed7f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions porchlight/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@
the |porchlight| :doc:`quickstart` guide
"""
import logging
import os

from .door import Door
from .neighborhood import Neighborhood
from .param import Param


# Initialize logging
import logging
# Aliases for migration to generic names, >=v1.2.0.
PorchlightAdapter = Door
PorchlightMediator = Neighborhood


# Initialize logging with a NullHandler to let user decide on a handler if they
# so choose.
logging.getLogger(__name__).addHandler(logging.NullHandler())

0 comments on commit 54bed7f

Please sign in to comment.