summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-15 01:49:29 -0800
committerAndy McCurdy <andy@andymccurdy.com>2018-11-15 01:49:29 -0800
commit1a1559b8caca0412b5621d2c8768577bbf0ccac3 (patch)
tree8d8ef4fd07e27750d2ea5f14c5af80d703d17d90 /redis
parent20639c334fa9180c046f1e8726057e9ee00e67de (diff)
downloadredis-py-1a1559b8caca0412b5621d2c8768577bbf0ccac3.tar.gz
fix rst format issues
Diffstat (limited to 'redis')
-rw-r--r--redis/__init__.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/redis/__init__.py b/redis/__init__.py
index e8bcb34..99b095a 100644
--- a/redis/__init__.py
+++ b/redis/__init__.py
@@ -22,8 +22,15 @@ from redis.exceptions import (
)
-__version__ = '3.0.0'
-VERSION = tuple(map(int, __version__.split('.')))
+def int_or_str(value):
+ try:
+ return int(value)
+ except ValueError:
+ return value
+
+
+__version__ = '3.0.0.post1'
+VERSION = tuple(map(int_or_str, __version__.split('.')))
__all__ = [
'Redis', 'StrictRedis', 'ConnectionPool', 'BlockingConnectionPool',