Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename "_get_default_session" to support use as public method #3651

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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