| 134 | | # The list of safe characters here is constructed from the printable ASCII |
| 135 | | # characters that are not explicitly excluded by the list at the end of |
| 136 | | # section 3.1 of RFC 3987. |
| | 134 | # The list of safe characters here is constructed from the "reserved" and |
| | 135 | # "unreserved" characters specified in sections 2.2 and 2.3 of RFC 3986: |
| | 136 | # reserved = gen-delims / sub-delims |
| | 137 | # gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@" |
| | 138 | # sub-delims = "!" / "$" / "&" / "'" / "(" / ")" |
| | 139 | # / "*" / "+" / "," / ";" / "=" |
| | 140 | # unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" |
| | 141 | # Of the unreserved characters, urllib.quote already considers all but |
| | 142 | # the ~ safe. |