summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/lll.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-30 11:13:59 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-30 11:13:59 (GMT)
commite7b88e7402b3683afeec3ed602dd53288772991c (patch)
tree3f31c12fc6504ec423ba944312b3c7b364552ce8 /Tools/scripts/lll.py
parentb2ac8092a8f32de529675e14f3ba5c1f6ef06737 (diff)
downloadcpython-e7b88e7402b3683afeec3ed602dd53288772991c.zip
cpython-e7b88e7402b3683afeec3ed602dd53288772991c.tar.gz
cpython-e7b88e7402b3683afeec3ed602dd53288772991c.tar.bz2
change posix to os
Diffstat (limited to 'Tools/scripts/lll.py')
-rwxr-xr-xTools/scripts/lll.py14
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: