[Python-checkins] distutils2: Changed unknown option warning to be more informative
tarek.ziade
python-checkins at python.org
Sun May 30 00:05:49 CEST 2010
tarek.ziade pushed 5594d05f391a to distutils2:
http://hg.python.org/distutils2/rev/5594d05f391a
changeset: 167:5594d05f391a
parent: 164:21e3531cc3ed
user: Nicolas Cadou <ncadou at cadou.ca>
date: Sat May 22 21:33:38 2010 -0400
summary: Changed unknown option warning to be more informative
files: src/distutils2/dist.py
diff --git a/src/distutils2/dist.py b/src/distutils2/dist.py
--- a/src/distutils2/dist.py
+++ b/src/distutils2/dist.py
@@ -248,7 +248,7 @@
elif hasattr(self, key):
setattr(self, key, val)
else:
- msg = "Unknown distribution option: %s" % repr(key)
+ msg = "Metadata option not defined in version 1.2 (PEP-345): %s" % repr(key)
if warnings is not None:
warnings.warn(msg)
else:
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list