From a441038419e409967f9cf931dcd68090fae44ad4 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Sat, 18 Mar 2017 17:27:31 -0700 Subject: [PATCH] urlutils notes: link to rfc port note --- docs/urlutils.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/urlutils.rst b/docs/urlutils.rst index 4832fe1..fcb12fc 100644 --- a/docs/urlutils.rst +++ b/docs/urlutils.rst @@ -53,10 +53,10 @@ The URL type .. note:: - As is the case for 80 for HTTP and 22 for SSH, many schemes have - default ports, and RFC 3986 states that when a URL's port is the - same as its scheme's default port, the port should not be - emitted:: + As is the case for 80 for HTTP and 22 for SSH, many schemes + have default ports, and `Section 3.2.3 of RFC 3986`_ states + that when a URL's port is the same as its scheme's default + port, the port should not be emitted:: >>> URL(u'https://github.com:443/mahmoud/boltons').to_text() u'https://github.com/mahmoud/boltons' @@ -65,6 +65,8 @@ The URL type :func:`~boltons.urlutils.register_scheme`. See :attr:`URL.default_port` for more info. + .. _Section 3.2.3 of RFC 3986:: https://tools.ietf.org/html/rfc3986#section-3.2.3 + .. attribute:: URL.path The string starting with the first leading slash after the