jbalogh/django-pylibmc — pull request #5 by pmclanahan (2012-08-30 14:57:59+00:00)
Title: Fix infinite timeout when timeout=0.

Despite what the README says, this lib does not seem to respect
timeout=0. Since it uses Django's default `_get_memcache_timeout`
it will convert a falsy value to the backend default timeout.

This patch special-cases a 0 value so that it's passed to the
backend unmolested, but still uses Django's method for all
other values.

I also cleaned up some things due to my OCD and Mozilla's
python style guide.