docnames can also be None...

This commit is contained in:
Georg Brandl 2014-01-19 17:49:28 +01:00
parent bc614bcd93
commit 9f5cb0eca9

View File

@ -268,7 +268,7 @@ class Builder(object):
# filter "docnames" (list of outdated files) by the updated # filter "docnames" (list of outdated files) by the updated
# found_docs of the environment; this will remove docs that # found_docs of the environment; this will remove docs that
# have since been removed # have since been removed
if docnames != ['__all__']: if docnames and docnames != ['__all__']:
docnames = set(docnames) & self.env.found_docs docnames = set(docnames) & self.env.found_docs
# another indirection to support builders that don't build # another indirection to support builders that don't build