Skip to content

Commit

Permalink
refactor: rename "_get_default_session" to support use as public method
Browse files Browse the repository at this point in the history
Closes boto#2707
  • Loading branch information
khneal committed Mar 21, 2023
1 parent fd49e72 commit 827c1b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion boto3/__init__.py
Expand Up @@ -69,7 +69,7 @@ def set_stream_logger(name='boto3', level=logging.DEBUG, format_string=None):
logger.addHandler(handler)


def _get_default_session():
def get_default_session():
"""
Get the default session, creating one if needed.
Expand All @@ -83,6 +83,9 @@ def _get_default_session():
return DEFAULT_SESSION


_get_default_session = get_default_session


def client(*args, **kwargs):
"""
Create a low-level service client by name using the default session.
Expand Down

0 comments on commit 827c1b6

Please sign in to comment.