[120939] branches/gsoc14-pip2port/tester.py
gaurav at macports.org
gaurav at macports.org
Wed Jun 11 23:45:15 PDT 2014
Revision: 120939
https://trac.macports.org/changeset/120939
Author: gaurav at macports.org
Date: 2014-06-11 23:45:15 -0700 (Wed, 11 Jun 2014)
Log Message:
-----------
Improved regex for description
Modified Paths:
--------------
branches/gsoc14-pip2port/tester.py
Modified: branches/gsoc14-pip2port/tester.py
===================================================================
--- branches/gsoc14-pip2port/tester.py 2014-06-12 05:03:32 UTC (rev 120938)
+++ branches/gsoc14-pip2port/tester.py 2014-06-12 06:45:15 UTC (rev 120939)
@@ -232,8 +232,10 @@
else:
file.write('maintainers nomaintainer\n\n')
-
- file.write('description '+dict['summary']+'\n\n')
+ summary = dict['summary']
+ summary = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`]',' ',summary)
+# file.write('description '+dict['summary']+'\n\n')
+ file.write('description '+summary+'\n\n')
# file.write('long_description '+dict['description']+'\n\n')
description = dict['description']
if description:
@@ -242,7 +244,7 @@
# description = string.replace(description,']',' ')
# description = string.replace(description,'{',' ')
# description = string.replace(description,'}',' ')
- description = re.sub(r'[\[\]\{\}\;\:\$]',' ',description)
+ description = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`]',' ',description)
# lines = textwrap.wrap(dict['description'],width=70)
lines = textwrap.wrap(description,width=70)
file.write('long_description ')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140611/24f18013/attachment.html>
More information about the macports-changes
mailing list