diff options
author | Guido van Rossum <guido@python.org> | 1991-07-01 18:22:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-07-01 18:22:34 (GMT) |
commit | 9c5c80824c0e1b60972e33fcfdfdca20b082df9e (patch) | |
tree | 0bbe4d3299e37f8a670d31dacdc7da0f7e087421 /Tools/scripts | |
parent | c3f2a3bf93a851686c6690f8ffac09102620493a (diff) | |
download | cpython-9c5c80824c0e1b60972e33fcfdfdca20b082df9e.zip cpython-9c5c80824c0e1b60972e33fcfdfdca20b082df9e.tar.gz cpython-9c5c80824c0e1b60972e33fcfdfdca20b082df9e.tar.bz2 |
Renamed path.cat to path.join.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/findlinksto.py | 2 | ||||
-rwxr-xr-x | Tools/scripts/mkreal.py | 6 | ||||
-rwxr-xr-x | Tools/scripts/which.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Tools/scripts/findlinksto.py b/Tools/scripts/findlinksto.py index 6a2a75b..9398514 100755 --- a/Tools/scripts/findlinksto.py +++ b/Tools/scripts/findlinksto.py @@ -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: diff --git a/Tools/scripts/mkreal.py b/Tools/scripts/mkreal.py index 3fd4b03..b72c2e5 100755 --- a/Tools/scripts/mkreal.py +++ b/Tools/scripts/mkreal.py @@ -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 diff --git a/Tools/scripts/which.py b/Tools/scripts/which.py index b9b888b..b36c5ca 100755 --- a/Tools/scripts/which.py +++ b/Tools/scripts/which.py @@ -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]): |