]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Updated lagging version#. Also added some comments about how quote()
authorGuido van Rossum <guido@python.org>
Wed, 9 Jun 1999 15:14:50 +0000 (15:14 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 9 Jun 1999 15:14:50 +0000 (15:14 +0000)
and quote_plus() can be optimized tenfold.

Lib/urllib.py

index 9ccf9c50076cbb13b66c4e3a422fc2066afe06e8..1b5baaaf95f17fc3e9d830377d8c49553080a4a7 100644 (file)
@@ -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, ' ')