summaryrefslogtreecommitdiff
path: root/fileutils.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-10-18 11:52:07 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-10-18 11:52:07 +0200
commit0ea75902f065515d2dc49d18a642958a62876cc7 (patch)
treeb69154084a5e6b6bdc7b52c64702eb4fa558f295 /fileutils.py
parentdd76e5ec8284066b3238b9d1bdd224d83adf25ac (diff)
downloadlogilab-common-0ea75902f065515d2dc49d18a642958a62876cc7.tar.gz
fix: stay python2.3 compat
Diffstat (limited to 'fileutils.py')
-rw-r--r--fileutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fileutils.py b/fileutils.py
index aacd801..3d030e9 100644
--- a/fileutils.py
+++ b/fileutils.py
@@ -378,7 +378,7 @@ def export(from_dir, to_dir,
for filename in filenames:
# don't include binary files
# endswith does not accept tuple in 2.4
- if any(filename.endswith(ext) for ext in ignore_ext):
+ if any([filename.endswith(ext) for ext in ignore_ext]):
continue
src = join(directory, filename)
dest = to_dir + src[len(from_dir):]