From 1367b0cf3daed8d46d46d0b3e781bf939734ad7f Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 19 Aug 2019 11:00:00 -0400 Subject: [PATCH] Move the unicode_compatible decorator to the class. --- openedx/core/djangoapps/safe_sessions/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/safe_sessions/middleware.py b/openedx/core/djangoapps/safe_sessions/middleware.py index 6591fe0656..b0dd6a862a 100644 --- a/openedx/core/djangoapps/safe_sessions/middleware.py +++ b/openedx/core/djangoapps/safe_sessions/middleware.py @@ -88,6 +88,7 @@ class SafeCookieError(Exception): log.error(error_message) +@python_2_unicode_compatible class SafeCookieData(object): """ Cookie data that cryptographically binds and timestamps the user @@ -162,7 +163,6 @@ class SafeCookieData(object): )) return safe_cookie_data - @python_2_unicode_compatible def __str__(self): """ Returns a string serialization of the safe cookie data.