Commits

Guido van Rossum  committed 7f8756f

Renamed path.cat to path.join.

  • Participants
  • Parent commits abccb0f
  • Branches legacy-trunk

Comments (0)

Files changed (3)

File Tools/scripts/findlinksto.py

 		print 'descend into', dirname
 	n = len(pattern)
 	for name in names:
-		name = path.cat(dirname, name)
+		name = path.join(dirname, name)
 		try:
 			linkto = posix.readlink(name)
 			if linkto[:n] = pattern:

File Tools/scripts/mkreal.py

 import path
 from stat import *
 
-cat = path.cat
+join = path.join
 
 error = 'mkreal error'
 
 	posix.unlink(name)
 	posix.mkdir(name, mode)
 	posix.chmod(name, mode)
-	linkto = cat('..', linkto)
+	linkto = join('..', linkto)
 	#
 	for file in files:
 		if file not in ('.', '..'):
-			posix.symlink(cat(linkto, file), cat(name, file))
+			posix.symlink(join(linkto, file), join(name, file))
 
 def main():
 	sys.stdout = sys.stderr

File Tools/scripts/which.py

 for prog in sys.argv[1:]:
 	ident = ()
 	for dir in pathlist:
-		file = path.cat(dir, prog)
+		file = path.join(dir, prog)
 		try:
 			st = posix.stat(file)
 			if S_ISREG(st[ST_MODE]):