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.