[Python-checkins] r56120 - sandbox/trunk/pep0/pep0/pep.py
brett.cannon
python-checkins at python.org
Thu Jun 28 22:39:22 CEST 2007
Author: brett.cannon
Date: Thu Jun 28 22:39:22 2007
New Revision: 56120
Modified:
sandbox/trunk/pep0/pep0/pep.py
Log:
Strip whitespace as needed.
Modified: sandbox/trunk/pep0/pep0/pep.py
==============================================================================
--- sandbox/trunk/pep0/pep0/pep.py (original)
+++ sandbox/trunk/pep0/pep0/pep.py Thu Jun 28 22:39:22 2007
@@ -38,11 +38,11 @@
def __init__(self, author_and_email_tuple):
"""Parse the name and email address of an author."""
name, email = author_and_email_tuple
- self.first_last = name
+ self.first_last = name.strip()
self.email = email.lower()
last_name_fragment, suffix = self._last_name(name)
name_sep = name.index(last_name_fragment)
- self.first = name[:name_sep]
+ self.first = name[:name_sep].strip()
self.last = last_name_fragment
self.suffix = suffix
if not self.first:
More information about the Python-checkins
mailing list