From 54bed7fce33cf802a459371646f458aba13dc6f0 Mon Sep 17 00:00:00 2001 From: "Teal, D" Date: Wed, 12 Apr 2023 23:23:45 -0700 Subject: [PATCH] Adding support for future migration to __init__.py 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. --- porchlight/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/porchlight/__init__.py b/porchlight/__init__.py index e128b2b..88254cd 100644 --- a/porchlight/__init__.py +++ b/porchlight/__init__.py @@ -13,6 +13,7 @@ the |porchlight| :doc:`quickstart` guide """ +import logging import os from .door import Door @@ -20,7 +21,11 @@ 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())