diff options
author | Guido van Rossum <guido@python.org> | 1999-06-09 15:14:50 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-06-09 15:14:50 (GMT) |
commit | 0dee4ee0f8b3b1cb6283b2453e75bcf71f20a367 (patch) | |
tree | 757273eab3fe6b29c921b816ad9841d7eb1a1f0e /Lib | |
parent | db23d3dbf73e3a1a0f9caa0e0a026aa933a61e9d (diff) | |
download | cpython-0dee4ee0f8b3b1cb6283b2453e75bcf71f20a367.zip cpython-0dee4ee0f8b3b1cb6283b2453e75bcf71f20a367.tar.gz cpython-0dee4ee0f8b3b1cb6283b2453e75bcf71f20a367.tar.bz2 |
Updated lagging version#. Also added some comments about how quote()
and quote_plus() can be optimized tenfold.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/urllib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index 9ccf9c5..1b5baaa 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -27,7 +27,7 @@ import os import sys -__version__ = '1.10' +__version__ = '1.11' # XXX This version is not always updated :-( MAXFTPCACHE = 10 # Trim the ftp cache beyond this size @@ -896,6 +896,7 @@ def unquote_plus(s): always_safe = string.letters + string.digits + '_,.-' def quote(s, safe = '/'): + # XXX Can speed this up an order of magnitude safe = always_safe + safe res = list(s) for i in range(len(res)): @@ -905,6 +906,7 @@ def quote(s, safe = '/'): return string.joinfields(res, '') def quote_plus(s, safe = '/'): + # XXX Can speed this up an order of magnitude if ' ' in s: # replace ' ' with '+' l = string.split(s, ' ') |