diff options
author | Guido van Rossum <guido@python.org> | 1991-08-16 13:14:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-08-16 13:14:46 (GMT) |
commit | ac62b9e7cbf41f4dd04245b165e7becaffda08ed (patch) | |
tree | ceb1f276f65a58940add419a063b84ba2a1127e4 | |
parent | ca197b520e6bcf72b0212999d6f70e701bb7fa0e (diff) | |
download | cpython-ac62b9e7cbf41f4dd04245b165e7becaffda08ed.zip cpython-ac62b9e7cbf41f4dd04245b165e7becaffda08ed.tar.gz cpython-ac62b9e7cbf41f4dd04245b165e7becaffda08ed.tar.bz2 |
Renamed path.cat to path.join
-rw-r--r-- | Lib/lib-stdwin/DirList.py | 6 | ||||
-rwxr-xr-x | Lib/stdwin/DirList.py | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Lib/lib-stdwin/DirList.py b/Lib/lib-stdwin/DirList.py index fb0ae99..2332e4e 100644 --- a/Lib/lib-stdwin/DirList.py +++ b/Lib/lib-stdwin/DirList.py @@ -1,5 +1,7 @@ # DirList -- Directory Listing widget +# XXX Displays messy paths when following '..' + try: import posix, path os = posix @@ -20,8 +22,8 @@ class DirList() = VSplit(): self = VSplit.create(self, parent) names = os.listdir(dirname) for name in names: - if path.isdir(path.cat(dirname, name)): - fullname = path.cat(dirname, name) + if path.isdir(path.join(dirname, name)): + fullname = path.join(dirname, name) btn = SubdirButton().definetext(self, fullname) elif name[-3:] = '.py': btn = ModuleButton().definetext(self, name) diff --git a/Lib/stdwin/DirList.py b/Lib/stdwin/DirList.py index fb0ae99..2332e4e 100755 --- a/Lib/stdwin/DirList.py +++ b/Lib/stdwin/DirList.py @@ -1,5 +1,7 @@ # DirList -- Directory Listing widget +# XXX Displays messy paths when following '..' + try: import posix, path os = posix @@ -20,8 +22,8 @@ class DirList() = VSplit(): self = VSplit.create(self, parent) names = os.listdir(dirname) for name in names: - if path.isdir(path.cat(dirname, name)): - fullname = path.cat(dirname, name) + if path.isdir(path.join(dirname, name)): + fullname = path.join(dirname, name) btn = SubdirButton().definetext(self, fullname) elif name[-3:] = '.py': btn = ModuleButton().definetext(self, name) |