diff options
author | Guido van Rossum <guido@python.org> | 1992-03-30 11:13:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-03-30 11:13:59 (GMT) |
commit | e7b88e7402b3683afeec3ed602dd53288772991c (patch) | |
tree | 3f31c12fc6504ec423ba944312b3c7b364552ce8 /Tools/scripts/lll.py | |
parent | b2ac8092a8f32de529675e14f3ba5c1f6ef06737 (diff) | |
download | cpython-e7b88e7402b3683afeec3ed602dd53288772991c.zip cpython-e7b88e7402b3683afeec3ed602dd53288772991c.tar.gz cpython-e7b88e7402b3683afeec3ed602dd53288772991c.tar.bz2 |
change posix to os
Diffstat (limited to 'Tools/scripts/lll.py')
-rwxr-xr-x | Tools/scripts/lll.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Tools/scripts/lll.py b/Tools/scripts/lll.py index 509936d..6dd68ba 100755 --- a/Tools/scripts/lll.py +++ b/Tools/scripts/lll.py @@ -5,17 +5,17 @@ # No recursion. # (This is a totally different program from "findsymlinks.py"!) -import sys, posix, path +import sys, os def lll(dirname): - for name in posix.listdir(dirname): - if name not in ['.', '..']: - full = path.join(dirname, name) - if path.islink(full): - print name, '->', posix.readlink(full) + for name in os.listdir(dirname): + if name not in (os.curdir, os.pardir): + full = os.path.join(dirname, name) + if os.path.islink(full): + print name, '->', os.readlink(full) args = sys.argv[1:] -if not args: args = ['.'] +if not args: args = [os.curdir] first = 1 for arg in args: if len(args) > 1: |