Skip to content
Browse files

Python2.5 compatibility. parse_qsl fallback.

  • Loading branch information...
1 parent 10af113 commit 2689c9f84c4f1e589df6a2f82bdfd9f513b8095b @mylokin mylokin committed Jul 9, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 sphinx_http_domain/
6 sphinx_http_domain/
@@ -7,7 +7,7 @@
import re
-from urlparse import urlsplit, parse_qsl
+from urlparse import urlsplit
from docutils.nodes import literal, strong, Text
from docutils.parsers.rst import directives
@@ -23,6 +23,10 @@
desc_http_fragment, desc_http_response)
from sphinx_http_domain.utils import slugify, slugify_url
+ from urlparse import parse_qsl
+except ImportError:
+ from cgi import parse_qsl
class HTTPDescription(ObjectDescription):
def get_anchor(self, name, sig):

0 comments on commit 2689c9f

Please sign in to comment.
Something went wrong with that request. Please try again.