(value)
| 152 | return re.sub(r"(?:(?<!\r)\n)|(?:\r(?!\n))", "\r\n", text) |
| 153 | |
| 154 | def _quote_plus(value): |
| 155 | if not isinstance(value, six.string_types): |
| 156 | value = six.text_type(value) |
| 157 | |
| 158 | if isinstance(value, six.text_type): |
| 159 | value = value.encode("utf8") |
| 160 | |
| 161 | return _urllib.parse.quote_plus(value) |
| 162 | |
| 163 | # This version of urlencode is from my Python 1.5.2 back-port of the |
| 164 | # Python 2.1 CVS maintenance branch of urllib. It will accept a sequence |
no outgoing calls
no test coverage detected
searching dependent graphs…