Skip to content

Commit 48bd898

Browse files
committed
Preserve import for existing code
1 parent 8df5e9a commit 48bd898

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boto3/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# language governing permissions and limitations under the License.
1313

1414
import logging
15+
from logging import NullHandler
1516

1617
from boto3.compat import _warn_deprecated_python
1718
from boto3.session import Session
@@ -103,4 +104,4 @@ def resource(*args, **kwargs):
103104

104105
# Set up do-nothing logging like a library is supposed to.
105106
# https://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library
106-
logging.getLogger('boto3').addHandler(logging.NullHandler())
107+
logging.getLogger('boto3').addHandler(NullHandler())

0 commit comments

Comments
 (0)