[Python-checkins] distutils2: Remove unneeded constant in favor of comment.
tarek.ziade
python-checkins at python.org
Wed Feb 16 22:23:56 CET 2011
tarek.ziade pushed 7e1118583e5f to distutils2:
http://hg.python.org/distutils2/rev/7e1118583e5f
changeset: 1013:7e1118583e5f
parent: 1010:bbc4437b851b
user: ?ric Araujo <merwok at netwok.org>
date: Wed Feb 09 21:08:06 2011 +0100
summary:
Remove unneeded constant in favor of comment.
files:
distutils2/metadata.py
diff --git a/distutils2/metadata.py b/distutils2/metadata.py
--- a/distutils2/metadata.py
+++ b/distutils2/metadata.py
@@ -77,8 +77,6 @@
'Obsoletes-Dist', 'Requires-External', 'Maintainer',
'Maintainer-email', 'Project-URL')
-_345_REQUIRED = ('Name', 'Version')
-
_ALL_FIELDS = set()
_ALL_FIELDS.update(_241_FIELDS)
_ALL_FIELDS.update(_314_FIELDS)
@@ -471,7 +469,7 @@
# XXX should check the versions (if the file was loaded)
missing, warnings = [], []
- for attr in ('Name', 'Version'):
+ for attr in ('Name', 'Version'): # required by PEP 345
if attr not in self:
missing.append(attr)
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list