mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
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.
This commit is contained in:
parent
19c0d943e9
commit
2a97dcce09
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue