diff options
author | Guido van Rossum <guido@python.org> | 1991-08-16 13:27:45 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-08-16 13:27:45 (GMT) |
commit | fbe0a8e0901e145017db0d52fed156869df4d5ea (patch) | |
tree | 3943fb325967cc9fe901c1489c3395d3bb953da7 /Lib/packmail.py | |
parent | 0b7448020a7b6ff7eb913635b54424989796e467 (diff) | |
download | cpython-fbe0a8e0901e145017db0d52fed156869df4d5ea.zip cpython-fbe0a8e0901e145017db0d52fed156869df4d5ea.tar.gz cpython-fbe0a8e0901e145017db0d52fed156869df4d5ea.tar.bz2 |
macpath.cat --> join
Diffstat (limited to 'Lib/packmail.py')
-rw-r--r-- | Lib/packmail.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/packmail.py b/Lib/packmail.py index a964d6d..2ff067d 100644 --- a/Lib/packmail.py +++ b/Lib/packmail.py @@ -21,7 +21,7 @@ def pack(outfp, file, name): def packsome(outfp, dirname, names): for name in names: print name - file = macpath.cat(dirname, name) + file = macpath.join(dirname, name) pack(outfp, file, name) # Pack all files from a directory @@ -33,13 +33,13 @@ def packall(outfp, dirname): # Pack all files from a directory that are not older than a give one def packnotolder(outfp, dirname, oldest): names = mac.listdir(dirname) - oldest = macpath.cat(dirname, oldest) + oldest = macpath.join(dirname, oldest) st = mac.stat(oldest) mtime = st[ST_MTIME] todo = [] for name in names: print name, '...', - st = mac.stat(macpath.cat(dirname, name)) + st = mac.stat(macpath.join(dirname, name)) if st[ST_MTIME] >= mtime: print 'Yes.' todo.append(name) @@ -55,7 +55,7 @@ def packtree(outfp, dirname): names = mac.listdir(dirname) subdirs = [] for name in names: - fullname = macpath.cat(dirname, name) + fullname = macpath.join(dirname, name) if macpath.isdir(fullname): subdirs.append(fullname) else: |