aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_egg.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-09-12 16:58:06 +0200
committerMartin v. Löwis <martin@v.loewis.de>2009-09-12 16:58:06 +0200
commitc1098e903f4eab3c673089fb60d3540e28fe0778 (patch)
treea772058286aaa2ae16229f3c6aac77dd200dcaec /setuptools/command/bdist_egg.py
parent1319d728ada3b4bd18a5e6c430439331c1ac7ee4 (diff)
downloadexternal_python_setuptools-c1098e903f4eab3c673089fb60d3540e28fe0778.tar.gz
external_python_setuptools-c1098e903f4eab3c673089fb60d3540e28fe0778.tar.bz2
external_python_setuptools-c1098e903f4eab3c673089fb60d3540e28fe0778.zip
Replace os.path.walk with os.walk.
--HG-- branch : distribute extra : rebase_source : 9bc223da3173d759f3c59eb72138e7405b4384ed
Diffstat (limited to 'setuptools/command/bdist_egg.py')
-rw-r--r--setuptools/command/bdist_egg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 9e852a3f..32cebe9d 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -525,9 +525,11 @@ def make_zipfile(zip_filename, base_dir, verbose=0, dry_run=0, compress=None,
compression = [zipfile.ZIP_STORED, zipfile.ZIP_DEFLATED][bool(compress)]
if not dry_run:
z = zipfile.ZipFile(zip_filename, mode, compression=compression)
- os.path.walk(base_dir, visit, z)
+ for dirname, dirs, files in os.walk(base_dir):
+ visit(z, dirname, files)
z.close()
else:
- os.path.walk(base_dir, visit, None)
+ for dirname, dirs, files in os.walk(base_dir):
+ visit(None, dirname, file)
return zip_filename
#