New way of generating .pyc files, thanks to Sjoerd.

urllib.py: '+' is not always safe (even though the RFC says so :-( )
whrandom.py: throw away top bits of time to avoid overflow on Mac
(where times can be negative)
This commit is contained in:
Guido van Rossum 1994-08-29 10:52:58 +00:00
parent 7b1e974b4b
commit 3bb5448767
5 changed files with 96 additions and 2 deletions

View file

@ -452,7 +452,7 @@ def unquote(s):
i = j+3
return res
always_safe = string.letters + string.digits + '_,.+-'
always_safe = string.letters + string.digits + '_,.-'
def quote(s, safe = '/'):
safe = always_safe + safe
res = ''