Commits

Lx Yu  committed 81286e6

fix unicode encode error

  • Participants
  • Parent commits 4d28426

Comments (0)

Files changed (1)

File dogpile/cache/util.py

                     "function does not accept keyword arguments.")
         if has_self:
             args = args[1:]
-        return namespace + "|" + " ".join(map(compat.string_type, args))
+        return namespace + "|" + " ".join(map(compat.text_type, args))
     return generate_key
 
 def function_multi_key_generator(namespace, fn):
                     "function does not accept keyword arguments.")
         if has_self:
             args = args[1:]
-        return [namespace + "|" + key for key in map(compat.string_type, args)]
+        return [namespace + "|" + key for key in map(compat.text_type, args)]
     return generate_keys
 
 def sha1_mangle_key(key):