Skip to content

Commit

Permalink
posix -> os
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Mar 30, 1992
1 parent 3a585bb commit 4a5ab81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tools/scripts/dutree.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#! /usr/local/python
# Format du output in a tree shape

import posix, string, sys, path
import os, string, sys

def main():
p = posix.popen('du ' + string.join(sys.argv[1:]), 'r')
p = os.popen('du ' + string.join(sys.argv[1:]), 'r')
total, d = None, {}
for line in p.readlines():
[num, file] = string.split(line)
Expand Down Expand Up @@ -36,7 +36,7 @@ def show(total, d, prefix):
list.append((tsub, key))
if tsub is not None: sum = sum + tsub
if sum < total:
list.append((total - sum, '.'))
list.append((total - sum, os.curdir))
list.sort()
list.reverse()
width = len(`list[0][0]`)
Expand Down

0 comments on commit 4a5ab81

Please sign in to comment.