]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Renamed path.cat to path.join.
authorGuido van Rossum <guido@python.org>
Mon, 1 Jul 1991 18:22:34 +0000 (18:22 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Jul 1991 18:22:34 +0000 (18:22 +0000)
Tools/scripts/findlinksto.py
Tools/scripts/mkreal.py
Tools/scripts/which.py

index 6a2a75bad6c7d9348189b76b6200772d421d327a..93985149650bdb445c4e4d5c955cd19393af3705 100755 (executable)
@@ -14,7 +14,7 @@ def visit(pattern, dirname, names):
                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:
index 3fd4b03a8af56639ff7b1015e78dac0beea33c5f..b72c2e5b37e1a21e3b7c467f99c2105895a13226 100755 (executable)
@@ -9,7 +9,7 @@ import posix
 import path
 from stat import *
 
-cat = path.cat
+join = path.join
 
 error = 'mkreal error'
 
@@ -37,11 +37,11 @@ def mkrealdir(name):
        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
index b9b888bad85bcb836f851ac4373c7129f0e78ba8..b36c5cae5ee8256e707bab99d0f9d18bb8d32245 100755 (executable)
@@ -16,7 +16,7 @@ sts = 0
 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]):