Skip to content

Commit 9c5c808

Browse files
committed
Renamed path.cat to path.join.
1 parent c3f2a3b commit 9c5c808

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Tools/scripts/findlinksto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def visit(pattern, dirname, names):
1414
print 'descend into', dirname
1515
n = len(pattern)
1616
for name in names:
17-
name = path.cat(dirname, name)
17+
name = path.join(dirname, name)
1818
try:
1919
linkto = posix.readlink(name)
2020
if linkto[:n] = pattern:

Tools/scripts/mkreal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import path
1010
from stat import *
1111

12-
cat = path.cat
12+
join = path.join
1313

1414
error = 'mkreal error'
1515

@@ -37,11 +37,11 @@ def mkrealdir(name):
3737
posix.unlink(name)
3838
posix.mkdir(name, mode)
3939
posix.chmod(name, mode)
40-
linkto = cat('..', linkto)
40+
linkto = join('..', linkto)
4141
#
4242
for file in files:
4343
if file not in ('.', '..'):
44-
posix.symlink(cat(linkto, file), cat(name, file))
44+
posix.symlink(join(linkto, file), join(name, file))
4545

4646
def main():
4747
sys.stdout = sys.stderr

Tools/scripts/which.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def msg(str):
1616
for prog in sys.argv[1:]:
1717
ident = ()
1818
for dir in pathlist:
19-
file = path.cat(dir, prog)
19+
file = path.join(dir, prog)
2020
try:
2121
st = posix.stat(file)
2222
if S_ISREG(st[ST_MODE]):

0 commit comments

Comments
 (0)