[Python-checkins] python/dist/src/Mac/Tools/IDE PackageManager.py,1.11,1.12
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Sun, 01 Jun 2003 13:03:45 -0700
Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory sc8-pr-cvs1:/tmp/cvs-serv671/Mac/Tools/IDE
Modified Files:
PackageManager.py
Log Message:
Use splitlines() in stead of split() to split lines, and added a method
shortdescription() so the code to split off the first line of the
description isn't all over the place.
Index: PackageManager.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/PackageManager.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** PackageManager.py 29 May 2003 22:07:27 -0000 1.11
--- PackageManager.py 1 Jun 2003 20:03:43 -0000 1.12
***************
*** 386,390 ****
self.w.homepage_button.enable(not not self.packages[sel].homepage())
description = self.packages[sel].description()
! description = description.split('\r\n')
description = '\r'.join(description)
self.w.description.set(description)
--- 386,390 ----
self.w.homepage_button.enable(not not self.packages[sel].homepage())
description = self.packages[sel].description()
! description = description.splitlines()
description = '\r'.join(description)
self.w.description.set(description)