diff options
author | Alexander Shorin <kxepal@apache.org> | 2013-10-15 02:54:47 +0400 |
---|---|---|
committer | Alexander Shorin <kxepal@apache.org> | 2013-10-15 02:54:47 +0400 |
commit | 08f0009d47e4f39f49fee820647f7051c6496b03 (patch) | |
tree | aff63b35405430cccf009ad430e4a95c64b99d3c | |
parent | 1f41f0b6098693696bc57c28d9ae736b5da6f6c0 (diff) | |
download | couchdb-08f0009d47e4f39f49fee820647f7051c6496b03.tar.gz |
Fix httpdomain compatibility issue with Python 2.6
-rw-r--r-- | share/doc/ext/httpdomain.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/doc/ext/httpdomain.py b/share/doc/ext/httpdomain.py index afc81b564..d5d56527c 100644 --- a/share/doc/ext/httpdomain.py +++ b/share/doc/ext/httpdomain.py @@ -46,7 +46,7 @@ class DocRef(object): location of the RFC which defines some HTTP method. """ - return '{}#{}{}'.format(self.base_url, self.anchor, self.section) + return '{0}#{1}{2}'.format(self.base_url, self.anchor, self.section) class RFC2616Ref(DocRef): @@ -62,7 +62,7 @@ class IETFRef(DocRef): def __init__(self, rfc, section): url = 'http://tools.ietf.org/html/rfc{0:d}'.format(rfc) super(IETFRef, self).__init__(url, 'section-', section) - + class EventSourceRef(DocRef): |