diff -ur sphinxcontrib-httpdomain-1.1.7.orig/sphinxcontrib/httpdomain.py sphinxcontrib-httpdomain-1.1.7/sphinxcontrib/httpdomain.py --- sphinxcontrib-httpdomain-1.1.7.orig/sphinxcontrib/httpdomain.py 2012-03-28 16:10:58.000000000 +1000 +++ sphinxcontrib-httpdomain-1.1.7/sphinxcontrib/httpdomain.py 2013-03-04 13:20:09.941831182 +1000 @@ -44,7 +44,7 @@ location of the RFC which defines some HTTP method. """ - return '{}#{}{}'.format(self.base_url, self.anchor, self.section) + return '%s#%s%s' % (self.base_url, self.anchor, self.section) #: The URL of the HTTP/1.1 RFC which defines the HTTP methods OPTIONS, GET, @@ -319,7 +319,7 @@ for prefix in self.ignore: if letters[:len(prefix)] == prefix: return '/' + '/'.join(letters[:len(prefix) + 1]) - return '/%s' % (letters[0] if letters else '',) + return '/%s' % (letters and letters[0] or '',) def generate(self, docnames=None): content = {}