import sys
-__version__ = '1.10'
+__version__ = '1.11' # XXX This version is not always updated :-(
MAXFTPCACHE = 10 # Trim the ftp cache beyond this size
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)):
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, ' ')