andymccurdy/redis-py — pull request #442 by mkai (2014-03-13 00:03:21+00:00)
Title: Adjust to changed TTL, PTTL semantics

Redis >= 2.8 might return -2 in TTL or PTTL commands:
http://redis.io/commands/ttl
http://redis.io/commands/pttl

This patch ensures that redis-py just returns None in that case, as before with -1 return values.