summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/dirwin.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-31 19:04:48 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-31 19:04:48 (GMT)
commit25d7cafd8a0650c9ca5185e095f85745b229acdc (patch)
tree40fa47bc8b8e76f18f53558957811cfa0402b358 /Lib/stdwin/dirwin.py
parent3bc034bb7982078514acb829dcd95ffe67ea2d48 (diff)
downloadcpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.zip
cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.tar.gz
cpython-25d7cafd8a0650c9ca5185e095f85745b229acdc.tar.bz2
posix -> os
Diffstat (limited to 'Lib/stdwin/dirwin.py')
-rwxr-xr-xLib/stdwin/dirwin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/stdwin/dirwin.py b/Lib/stdwin/dirwin.py
index beb5222..e8b0170 100755
--- a/Lib/stdwin/dirwin.py
+++ b/Lib/stdwin/dirwin.py
@@ -2,24 +2,24 @@
# Directory windows, a subclass of listwin
+import os
import gwin
import listwin
import anywin
-import path
import dircache
def action(w, string, i, detail):
(h, v), clicks, button, mask = detail
if clicks == 2:
- name = path.join(w.name, string)
+ name = os.path.join(w.name, string)
try:
w2 = anywin.open(name)
w2.parent = w
- except posix.error, why:
+ except os.error, why:
stdwin.message('Can\'t open ' + name + ': ' + why[1])
def open(name):
- name = path.join(name, '')
+ name = os.path.join(name, '')
list = dircache.opendir(name)[:]
list.sort()
dircache.annotate(name, list)