cpython/Lib
Sjoerd Mullender e0371b8415 Fixed basejoin. There were two main problems:
- basejoin('some/url', '#name') would strip the last component of
  some/url and resturn some/#name.
- basejoin('file.html', 'relative/path') would return something like
  file:/relative/path, making a relative path into an absolute one.
These bugs are fixed by some drastic changes.  No scheme is added when
none is present (i.e. it works as replacement for posix.joinpath).
If a scheme is present in the second argument, it is returned
unprocessed.  No hostname are added in this case.  If no scheme is
present, the scheme of the first argument, if present, is used.
The algorithm is commented profusely.
Also fixed a typo in a comment.
1995-11-10 10:36:07 +00:00
..
irix5 new exec syntax 1995-09-18 22:00:37 +00:00
lib-old noted obsolescence; exec() -> exec 1995-08-10 19:43:04 +00:00
lib-stdwin handle class exceptions; added runeval; made runctx obsolete 1995-02-27 13:13:40 +00:00
lib-tk Renamed module tkinter to _tkinter 1995-10-23 14:36:05 +00:00
linux1 added Linux specific files 1995-04-05 09:44:56 +00:00
plat-irix5 new exec syntax 1995-09-18 22:00:37 +00:00
plat-linux1 added Linux specific files 1995-04-05 09:44:56 +00:00
plat-sunos4 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
plat-sunos5 added TERMIOS.py 1995-03-31 11:34:23 +00:00
stdwin handle class exceptions; added runeval; made runctx obsolete 1995-02-27 13:13:40 +00:00
sunos4 Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
sunos5 added TERMIOS.py 1995-03-31 11:34:23 +00:00
test exec() -> exec 1995-08-11 14:24:47 +00:00
tkinter Renamed module tkinter to _tkinter 1995-10-23 14:36:05 +00:00
BaseHTTPServer.py Initial revision 1995-08-04 04:00:20 +00:00
CGIHTTPServer.py changed some commas into percent signs 1995-08-29 19:18:24 +00:00
Complex.py new files 1995-01-12 12:29:47 +00:00
Makefile Added Makefile with clean and clobber targets 1994-01-04 23:24:22 +00:00
Para.py added note about obsolescence 1995-08-10 18:00:03 +00:00
Queue.py Some minute changes. 1993-12-29 15:33:08 +00:00
SimpleHTTPServer.py recognize a few more file types 1995-09-18 21:50:43 +00:00
SocketServer.py Initial revision 1995-08-04 04:00:20 +00:00
StringIO.py Added flush() method. 1995-07-19 11:21:21 +00:00
UserDict.py * test_*.py: new lambda syntax (also affects tests for filter, map, 1993-11-30 13:43:54 +00:00
UserList.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
addpack.py urlopen: add basejoin() function. 1994-03-07 11:45:36 +00:00
aifc.py temporarily disabled the access statements 1995-08-10 19:23:37 +00:00
anydbm.py change default flag to match dbm/gdbm 1995-08-11 14:18:27 +00:00
audiodev.py rather ugly temporary hacks to make it work in grail & restricted mode 1995-08-09 02:33:38 +00:00
base64.py Use binascii module (resulting in a 60-fold speedup:-) 1995-10-04 16:39:20 +00:00
bdb.py handle class exceptions; added runeval; made runctx obsolete 1995-02-27 13:13:40 +00:00
binhex.py Fixed hexbin handling 1995-10-03 14:41:15 +00:00
bisect.py Added a _v21 def to FL.py and added two new input field types 1992-09-02 20:43:20 +00:00
builtin.py added builtin b/w compat module. 1993-10-22 14:24:22 +00:00
calendar.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
cgi.py handle missing QUERY_STRING 1995-09-18 21:52:37 +00:00
cmd.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
cmp.py fix buffer size 1994-10-09 22:34:40 +00:00
cmpcache.py fix buffer size 1994-10-09 22:34:40 +00:00
codehack.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
colorsys.py New module 'colorsys' implements conversions between different color systems. 1992-09-07 09:41:48 +00:00
commands.py Added clarifying comment 1995-01-04 19:20:00 +00:00
compileall.py handle class exceptions 1995-02-27 13:15:45 +00:00
copy.py fix bogus hasttr usage 1995-03-22 10:10:31 +00:00
dircache.py posix -> os 1992-03-31 18:55:40 +00:00
dircmp.py * Got entirely rid of path.py. 1992-12-14 12:57:56 +00:00
dis.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
dospath.py redefined normcase() 1995-08-10 19:27:42 +00:00
dumbdbm.py Initial revision 1995-08-10 19:29:28 +00:00
dump.py New == syntax 1992-01-01 19:35:13 +00:00
emacs.py Added emacs.py (for misc/py-connect.el). 1992-08-09 13:54:50 +00:00
find.py changes for the Mac 1995-01-27 02:41:45 +00:00
fmt.py added note about obsolescence 1995-08-10 18:00:03 +00:00
fnmatch.py changes for the Mac 1995-01-27 02:41:45 +00:00
formatter.py added NullFormatter 1995-10-06 15:31:30 +00:00
fpformat.py Initial revision 1992-03-15 21:37:43 +00:00
ftplib.py add delete() method to ftp object 1995-10-11 17:36:31 +00:00
getopt.py Bugfix: it choked on an empty argument! 1992-01-09 11:37:07 +00:00
glob.py Never return a non-existing pathname. 1992-01-12 23:32:11 +00:00
gopherlib.py Changes to use default argument values where possible 1994-05-06 14:28:19 +00:00
grep.py Use *args syntax instead of +args 1992-04-06 14:03:53 +00:00
htmlentitydefs.py added lt, gt, amp back to entity definitions 1995-10-06 15:26:52 +00:00
htmllib.py strip <A> attribute values 1995-10-06 15:30:57 +00:00
httplib.py actualized example/reference, fix bug w/ nonnumeric port 1995-09-30 16:50:46 +00:00
ihooks.py fix bug in reload 1995-08-09 02:32:49 +00:00
imghdr.py * calendar.py: all libC functionality now moved to built-in time module 1993-06-23 09:30:50 +00:00
importall.py exec() -> exec 1995-08-10 19:31:20 +00:00
linecache.py don't print Cannot open/stat messages 1995-08-10 19:32:22 +00:00
lockfile.py Module to lock open files using fcntl() 1994-05-03 14:46:18 +00:00
macpath.py added normpath() and splitdrive() 1995-08-10 18:09:16 +00:00
macstat.py * Lib/linecache.py: don't crash on empty filename 1994-08-23 13:32:20 +00:00
mailbox.py Added class MHMailbox 1995-10-23 13:59:53 +00:00
mailcap.py Initial revision 1995-09-30 16:52:24 +00:00
mhlib.py fix bogus test for regex match 1995-01-26 00:45:20 +00:00
mimetools.py forget previous change (content-encoding) 1995-08-29 19:25:11 +00:00
multifile.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
mutex.py * Mass change: get rid of all init() methods, in favor of __init__() 1993-12-17 15:25:27 +00:00
newdir.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
newimp.py Official version 1.26 directly from Ken 1995-07-12 15:34:34 +00:00
ni.py Initial revision 1995-08-04 04:00:20 +00:00
ni1.py Initial revision 1995-08-04 04:00:20 +00:00
nntplib.py actualized example; added xover, xgtitle, xpath, date methods by Kevan Heydon 1995-09-22 00:52:38 +00:00
ntpath.py same thing as for dospath, plus HOMEDRIVE/HOMEPATH support 1995-08-10 19:34:50 +00:00
os.py make sure os.environ exists (maybe empty) 1995-08-07 20:15:23 +00:00
ospath.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
packmail.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
pdb.doc Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
pdb.py use new "single" compile option 1995-08-07 20:16:05 +00:00
persist.py * ftplib.py: added abort() command (sends oob data). 1993-05-24 14:16:22 +00:00
pickle.py correct typo (persis*ent) 1995-08-07 20:16:58 +00:00
pipes.py * Mass change: get rid of all init() methods, in favor of __init__() 1993-12-17 15:25:27 +00:00
poly.py fix bug in poly.minus 1994-10-20 22:02:03 +00:00
popen2.py pass the command to sh -c 1995-08-07 20:17:23 +00:00
posixfile.py fix stupid typo: r->RDLK 1995-08-10 19:38:36 +00:00
posixpath.py rationalized os.path.split() so split "/a/" yields "/a", "" 1995-09-01 20:32:21 +00:00
profile.doc Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
profile.py more robust coding, adapted for mac 1995-09-30 16:48:54 +00:00
pstats.py more robust coding, adapted for mac 1995-09-30 16:48:54 +00:00
pty.py New tty/pty modules by Steen; new urlparser. 1994-09-12 10:36:35 +00:00
py_compile.py Get magic number from interpreter (using module imp). 1995-07-19 11:21:47 +00:00
pyclbr.py Also remember the module a class is defined in. 1995-11-02 17:21:33 +00:00
quopri.py improved test/main program 1995-09-18 21:49:24 +00:00
rand.py Added warning comment 1991-08-16 13:28:11 +00:00
random.py Changes to use default argument values where possible 1994-05-06 14:28:19 +00:00
regex_syntax.py Initial revision 1991-12-30 16:03:05 +00:00
regexp.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
regsub.py New module regsub contains sub(), gsub() and split() as in nawk. 1992-09-20 21:41:09 +00:00
repr.py use getattr() instead of eval(), fix string representations 1995-01-12 12:29:17 +00:00
rexec.py make sure the path ends in a slash in reload() 1995-08-11 13:56:04 +00:00
rfc822.py added seekable option; save unix from lines; speed up islast() 1995-06-22 19:06:57 +00:00
sched.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
sgmllib.py typos in attrfind regex 1995-10-06 15:30:28 +00:00
shelve.py renamed DbShelf->DbfilenameShelf;added BsdDbShelf (David Ely) 1995-08-11 14:19:16 +00:00
shutil.py posix -> os 1992-03-31 18:55:40 +00:00
sndhdr.py sndhdr.py: restored lost file; audiodev.py: import platform specific 1994-01-14 16:46:14 +00:00
stat.py * Lib/linecache.py: don't crash on empty filename 1994-08-23 13:32:20 +00:00
statcache.py posix -> os 1992-03-31 19:04:48 +00:00
string.py default tabsize to 8 1995-08-10 19:42:05 +00:00
stringold.py default tabsize to 8 1995-08-10 19:42:05 +00:00
sunau.py Temporary fix for access statement. 1995-08-14 07:49:51 +00:00
sunaudio.py Remove reference to obsolete module 'audio' 1992-06-03 16:47:49 +00:00
symbol.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
tb.py noted obsolescence; exec() -> exec 1995-08-10 19:43:04 +00:00
tempfile.py Mostly rewritten to be more flexible and more portable 1992-03-31 19:02:01 +00:00
toaiff.py * Mass change: get rid of all init() methods, in favor of __init__() 1993-12-17 15:25:27 +00:00
token.py * test_select.py: (some) tests for built-in select module 1993-11-11 10:31:23 +00:00
tokenize.py * test_select.py: (some) tests for built-in select module 1993-11-11 10:31:23 +00:00
traceback.py add file parameter to all printing fns, default stderr 1995-09-20 20:31:51 +00:00
tty.py New tty/pty modules by Steen; new urlparser. 1994-09-12 10:36:35 +00:00
types.py added DictType as alias for DictionaryType 1995-02-27 13:14:15 +00:00
tzparse.py Merge alpha100 branch back to main trunk 1994-08-01 11:34:53 +00:00
urllib.py Fixed basejoin. There were two main problems: 1995-11-10 10:36:07 +00:00
urlopen.py urlopen: add basejoin() function. 1994-03-07 11:45:36 +00:00
urlparse.py remove file: from list of protocols taking host 1995-08-10 19:45:41 +00:00
util.py Clarify comment. 1991-04-21 19:34:48 +00:00
uu.py Fixed two minor errors. 1995-10-04 16:36:53 +00:00
wave.py aifc, sunau: make rate an int; os: restruct; ospath: obsolete; rfc822: 1994-02-15 15:57:15 +00:00
whatsound.py * calendar.py: all libC functionality now moved to built-in time module 1993-06-23 09:30:50 +00:00
whrandom.py * Lib/whrandom.py: if seed is (0,0,0), initialize from current 1994-09-14 13:33:57 +00:00
zmod.py New == syntax 1992-01-01 19:35:13 +00:00