Permalink
Browse files

Fixed `redis.from_url()` on Python 2.5

  • Loading branch information...
1 parent 14ebacf commit 7a0dd4f89a80e69ae83c6e2554632e6e596d41e0 @jpvanhal committed Jun 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 flask_split/utils.py
@@ -9,10 +9,15 @@
:license: MIT, see LICENSE for more details.
"""
+import urlparse
+
from flask import current_app
import redis
+urlparse.uses_netloc.append('redis')
+
+
def _get_redis_connection():
"""
Return a Redis connection based on the Flask application's configuration.

0 comments on commit 7a0dd4f

Please sign in to comment.