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

brett.cannon python-checkins at python.org
Fri Jun 15 05:48:14 CEST 2007


Author: brett.cannon
Date: Fri Jun 15 05:48:10 2007
New Revision: 55990

Modified:
   sandbox/trunk/pep0/pep0/pep.py
Log:
Import 'constants' instead of parts of the module.


Modified: sandbox/trunk/pep0/pep0/pep.py
==============================================================================
--- sandbox/trunk/pep0/pep0/pep.py	(original)
+++ sandbox/trunk/pep0/pep0/pep.py	Fri Jun 15 05:48:10 2007
@@ -1,5 +1,5 @@
 """Code for handling object representation of a PEP."""
-from .constants import nicknames, column_format
+from . import constants
 
 import re
 
@@ -117,10 +117,10 @@
         else:
             status_abbr = self.status[0].upper()
         pep_info['status'] = status_abbr
-        author_string = ', '.join(last_name(author, nicknames)
+        author_string = ', '.join(last_name(author, constants.nicknames)
                                     for author in self.authors)
         pep_info['authors'] = author_string
-        return column_format % pep_info
+        return constants.column_format % pep_info
 
 
 def last_name(full_name, nicknames={}):


More information about the Python-checkins mailing list