From 1cb5e632461b4f97f2c66123034e20e42895863c Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 6 Feb 2020 17:05:21 -0500 Subject: [PATCH] Rename the serializer to better match its purpose. --- cms/envs/common.py | 2 +- lms/envs/common.py | 2 +- openedx/core/lib/session_serializers.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cms/envs/common.py b/cms/envs/common.py index 01e3f891fb..967c442a28 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -837,7 +837,7 @@ COURSES_WITH_UNSAFE_CODE = [] DEBUG = False SESSION_COOKIE_SECURE = False SESSION_SAVE_EVERY_REQUEST = False -SESSION_SERIALIZER = 'openedx.core.lib.session_serializers.PickleV2Serializer' +SESSION_SERIALIZER = 'openedx.core.lib.session_serializers.PickleSerializer' SESSION_COOKIE_DOMAIN = "" SESSION_COOKIE_NAME = 'sessionid' diff --git a/lms/envs/common.py b/lms/envs/common.py index 13f2891ec3..2989bc2f55 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1100,7 +1100,7 @@ DEBUG = False USE_TZ = True SESSION_COOKIE_SECURE = False SESSION_SAVE_EVERY_REQUEST = False -SESSION_SERIALIZER = 'openedx.core.lib.session_serializers.PickleV2Serializer' +SESSION_SERIALIZER = 'openedx.core.lib.session_serializers.PickleSerializer' SESSION_COOKIE_DOMAIN = "" SESSION_COOKIE_NAME = 'sessionid' diff --git a/openedx/core/lib/session_serializers.py b/openedx/core/lib/session_serializers.py index 9a401c6152..1c08802a5b 100644 --- a/openedx/core/lib/session_serializers.py +++ b/openedx/core/lib/session_serializers.py @@ -5,7 +5,7 @@ import pickle import six -class PickleV2Serializer(object): +class PickleSerializer(object): """ Set the pickle protocol version explicitly because we don't want to have session thrashing when we upgrade to newer versions of