dogpile.cache / dogpile / cache / region.py

Diff from to

dogpile/cache/region.py

      is the SHA1 mangler found at :func:`.sha1_mangle_key`
      which coerces keys into a SHA1
      hash, so that the string length is fixed.  To
-     disable all key mangling, set to ``False``.   Another typical 
-     mangler is the built-in Python function `str` , which can be used
-     to convert keys to strings.  This can be necessary in situations 
-     where `dogpile.cache` is used with a Framework that defaults to 
-     unicode strings ( such as `Pyramid` ) and a backend that requires
-     byte-strings ( such as bsddb or dbm under Python 2.x ).  Passing 
-     unicode arguments into a cached action will create a TypeError 
-     without an appropriate `key_mangler`.
-
+     disable all key mangling, set to ``False``.   Another typical
+     mangler is the built-in Python function ``str``, which can be used
+     to convert non-string or Unicode keys to bytestrings, which is
+     needed when using a backend such as bsddb or dbm under Python 2.x
+     in conjunction with Unicode keys.
     :param async_creation_runner:  A callable that, when specified,
      will be passed to and called by dogpile.lock when
      there is a stale value present in the cache.  It will be passed the
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.