mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
7b1e974b4b
commit
3bb5448767
5 changed files with 96 additions and 2 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue