summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_py.py
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>2004-06-18 20:39:11 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>2004-06-18 20:39:11 (GMT)
commit4dbda47aea1759faa68e491237f078cf0c7050be (patch)
tree8794c84412563c29d97321d24cd2bcbd62756f00 /Lib/distutils/command/build_py.py
parent9e1bfe7dd99a6678141bb2f9926b37ffe6b5e1b8 (diff)
downloadcpython-4dbda47aea1759faa68e491237f078cf0c7050be.zip
cpython-4dbda47aea1759faa68e491237f078cf0c7050be.tar.gz
cpython-4dbda47aea1759faa68e491237f078cf0c7050be.tar.bz2
If self.packages is None (this can happen, I saw it), return
immediately (since None is not a sequence you can iterate over).
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r--Lib/distutils/command/build_py.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py
index cfbab26..3079bfc 100644
--- a/Lib/distutils/command/build_py.py
+++ b/Lib/distutils/command/build_py.py
@@ -104,6 +104,8 @@ class build_py (Command):
def get_data_files (self):
"""Generate list of '(package,src_dir,build_dir,filenames)' tuples"""
data = []
+ if not self.packages:
+ return data
for package in self.packages:
# Locate package source directory
src_dir = self.get_package_dir(package)