  
  There are 65 url-safe characters: the 64 used by url-safe base64 and the ':'.
  These functions make use of all of them.
  """
  import base64
  import json
  import time
  import zlib
 
</s> remove from django.utils.encoding import force_text, smart_bytes
 </s> add from django.utils.encoding import smart_bytes </s> remove         compressed = zlib.compress(data)
 </s> add         compressed = zlib.compress(smart_bytes(data)) </s> remove     return base64.urlsafe_b64decode(s + pad)
 </s> add     return base64.urlsafe_b64decode(smart_bytes(s + pad)).decode('ascii') </s> remove     return base64.urlsafe_b64encode(s).strip('=')
 </s> add     return base64.urlsafe_b64encode(smart_bytes(s)).decode('ascii').strip('=')
from __future__ import unicode_literals

  
  There are 65 url-safe characters: the 64 used by url-safe base64 and the ':'.
  These functions make use of all of them.
  """
from __future__ import unicode_literals

  import base64
  import json
  import time
  import zlib
keep keep keep add keep keep keep keep
 [py3] Made signing infrastructure pass tests with Python 3 
django/core/signing.py