diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-06-01 20:03:43 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-06-01 20:03:43 (GMT) |
commit | 2a97dcce090b5713f16521c73b20ad6604938770 (patch) | |
tree | 712d05ff6e382c1b8b4094e9caf2b9428b4b6c1a /Mac/Tools | |
parent | 19c0d943e952b57ded7c7dbad228092b347649b2 (diff) | |
download | cpython-2a97dcce090b5713f16521c73b20ad6604938770.zip cpython-2a97dcce090b5713f16521c73b20ad6604938770.tar.gz cpython-2a97dcce090b5713f16521c73b20ad6604938770.tar.bz2 |
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.
Diffstat (limited to 'Mac/Tools')
-rwxr-xr-x | Mac/Tools/IDE/PackageManager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PackageManager.py b/Mac/Tools/IDE/PackageManager.py index 3fde556..eee5b0a 100755 --- a/Mac/Tools/IDE/PackageManager.py +++ b/Mac/Tools/IDE/PackageManager.py @@ -385,7 +385,7 @@ class PackageBrowser(PimpInterface): self.w.install_button.enable(installed != "yes" or self.w.force_button.get()) self.w.homepage_button.enable(not not self.packages[sel].homepage()) description = self.packages[sel].description() - description = description.split('\r\n') + description = description.splitlines() description = '\r'.join(description) self.w.description.set(description) self.w.verbose_button.enable(1) |