From 0725768ddee84820fe435238aeff67d0e8854147 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Sat, 10 Sep 2011 12:04:20 +0100 Subject: [PATCH] urlparse.parse_qsl is not available on py2.5 --- kombu/connection.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kombu/connection.py b/kombu/connection.py index 6ec17c4f..05e35d8a 100644 --- a/kombu/connection.py +++ b/kombu/connection.py @@ -15,7 +15,11 @@ import socket from copy import copy from itertools import count from Queue import Empty -from urlparse import urlparse, parse_qsl +from urlparse import urlparse +try: + from urlparse import parse_qsl +except ImportError: + from cgi import parse_qsl from kombu import exceptions from kombu.transport import get_transport_cls