diff Lib/macpath.py @ 360:3b33ac44e36e legacy-trunk

macpath.cat --> join
author Guido van Rossum <guido@python.org>
date Fri, 16 Aug 1991 13:27:45 +0000
parents b4d5fdcbf83c
children 683edb0c4463
line wrap: on
line diff
--- a/Lib/macpath.py	Fri Aug 16 13:24:58 1991 +0000
+++ b/Lib/macpath.py	Fri Aug 16 13:27:45 1991 +0000
@@ -15,11 +15,11 @@
 	return ':' in s and s[0] <> ':'
 
 
-# Concatenate two pathnames.
+# Join two pathnames.
 # The result is equivalent to what the second pathname would refer to
 # if the first pathname were the current directory.
 
-def cat(s, t):
+def join(s, t):
 	if (not s) or isabs(t): return t
 	if t[:1] = ':': t = t[1:]
 	if ':' not in s:
@@ -29,9 +29,12 @@
 	return s + t
 
 
+cat = join # For compatibility
+
+
 # Split a pathname in two parts: the directory leading up to the final bit,
 # and the basename (the filename, without colons, in that directory).
-# The result (s, t) is such that cat(s, t) yields the original argument.
+# The result (s, t) is such that join(s, t) yields the original argument.
 
 def split(s):
 	if ':' not in s: return '', s