Staging
v0.5.1
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
Revision 33add0a95aa6c5ba5dbb8cae7b51a253209ecd6f authored by Guido van Rossum on 18 December 1998, 15:25:22 UTC, committed by Guido van Rossum on 18 December 1998, 15:25:22 UTC
File names with "funny" characters get translated wrong by pathname2url (any variety). E.g. the (Unix) file "/ufs/sjoerd/#tmp" gets translated into "/ufs/sjoerd/#tmp" which, when interpreted as a URL is file "/ufs/sjoerd/" with fragment ID "tmp". Here's an easy fix. (An alternative fix would be to change the various implementations of pathname2url and url2pathname to include calls to quote and unquote. [The main problem is with the normal use of URLs: url = url2pathname(file) transmit url url, tag = splittag(url) urlopen(url) ] In addition, this patch fixes some uses of unquote: - the host part of URLs should be unquoted - the file path in the FTP URL should be unquoted before it is split into components. - because of the latter, I removed all unquoting from ftpwrapper, and moved it to the caller, but that is not essential
1 parent dc86a4e
Tip revision: 550e4673be538d98b6ddf5550b3922539cf5c4b2 authored by Victor Stinner on 08 December 2020, 23:32:54 UTC
bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)
bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)
Tip revision: 550e467
File | Mode | Size |
---|---|---|
BeOS | ||
Demo | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
Tools | ||
.hgtags | -rw-r--r-- | 1.3 KB |
Makefile.in | -rw-r--r-- | 17.4 KB |
README | -rw-r--r-- | 36.1 KB |
acconfig.h | -rw-r--r-- | 2.9 KB |
config.h.in | -rw-r--r-- | 10.5 KB |
configure | -rwxr-xr-x | 120.8 KB |
configure.in | -rw-r--r-- | 19.1 KB |
install-sh | -rwxr-xr-x | 2.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...