[Python-checkins] r60711 - doctools/trunk/sphinx/environment.py
georg.brandl
python-checkins at python.org
Sun Feb 10 11:59:05 CET 2008
Author: georg.brandl
Date: Sun Feb 10 11:59:05 2008
New Revision: 60711
Modified:
doctools/trunk/sphinx/environment.py
Log:
Ignore nonexisting config settings.
Modified: doctools/trunk/sphinx/environment.py
==============================================================================
--- doctools/trunk/sphinx/environment.py (original)
+++ doctools/trunk/sphinx/environment.py Sun Feb 10 11:59:05 2008
@@ -345,7 +345,8 @@
for key, descr in config.config_values.iteritems():
if not descr[1]:
continue
- if self.config[key] != config[key]:
+ if not hasattr(self.config, key) or \
+ self.config[key] != config[key]:
msg = '[config changed] '
config_changed = True
break
More information about the Python-checkins
mailing list