[Python-checkins] r56055 - sandbox/trunk/pep0/pep0/pep.py

brett.cannon python-checkins at python.org
Wed Jun 20 21:36:01 CEST 2007


Author: brett.cannon
Date: Wed Jun 20 21:35:58 2007
New Revision: 56055

Modified:
   sandbox/trunk/pep0/pep0/pep.py
Log:
Switch to using map so that the code is even simpler.


Modified: sandbox/trunk/pep0/pep0/pep.py
==============================================================================
--- sandbox/trunk/pep0/pep0/pep.py	(original)
+++ sandbox/trunk/pep0/pep0/pep.py	Wed Jun 20 21:35:58 2007
@@ -200,7 +200,7 @@
         authors_and_emails = self._parse_author(metadata['Author'])
         if len(authors_and_emails) < 1:
             raise ValueError("no authors found (PEP %s)" % self.number)
-        self.authors = [Author(x) for x in authors_and_emails]
+        self.authors = map(Author, authors_and_emails)
 
 
     def _parse_author(self, data):


More information about the Python-checkins mailing list