~ubuntu-branches/ubuntu/oneiric/python2.5/oneiric

« back to all changes in this revision

Viewing changes to Lib/os.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-12-21 08:57:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081221085749-bijjr25h8na5jdsu
Tags: 2.5.3-0ubuntu1
* New upstream version.
* Regenerate the included documentation.
* Add an option --install-layout=deb, which is ignored for 2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
 
264
264
    Example:
265
265
 
 
266
    import os
266
267
    from os.path import join, getsize
267
 
    for root, dirs, files in walk('python/Lib/email'):
 
268
    for root, dirs, files in os.walk('python/Lib/email'):
268
269
        print root, "consumes",
269
270
        print sum([getsize(join(root, name)) for name in files]),
270
271
        print "bytes in", len(files), "non-directory files"