(string)
| 840 | def encode_url(string): |
| 841 | return urllib.quote_plus(bytestring(string)) # "black/white" => "black%2Fwhite". |
| 842 | def decode_url(string): |
| 843 | return urllib.unquote_plus(string) |
| 844 | |
| 845 | RE_SPACES = re.compile("( |\xa0)+", re.M) # Matches one or more spaces. |
| 846 | RE_TABS = re.compile(r"\t+", re.M) # Matches one or more tabs. |