Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #12 from mylokin/master

Python 2.5 compatibility
  • Loading branch information...
commit 2f6f34f9ce2f783c20dfc521e7476aaf502a9eab 2 parents 9450786 + 2689c9f
deceze authored

Showing 2 changed files with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +1 0  setup.py
  2. +5 1 sphinx_http_domain/directives.py
1  setup.py
... ... @@ -1,3 +1,4 @@
  1 +from __future__ import with_statement
1 2 import os
2 3
3 4 from distutils.core import setup
6 sphinx_http_domain/directives.py
@@ -7,7 +7,7 @@
7 7 """
8 8
9 9 import re
10   -from urlparse import urlsplit, parse_qsl
  10 +from urlparse import urlsplit
11 11
12 12 from docutils.nodes import literal, strong, Text
13 13 from docutils.parsers.rst import directives
@@ -23,6 +23,10 @@
23 23 desc_http_fragment, desc_http_response)
24 24 from sphinx_http_domain.utils import slugify, slugify_url
25 25
  26 +try:
  27 + from urlparse import parse_qsl
  28 +except ImportError:
  29 + from cgi import parse_qsl
26 30
27 31 class HTTPDescription(ObjectDescription):
28 32 def get_anchor(self, name, sig):

0 comments on commit 2f6f34f

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