[121088] branches/gsoc14-pip2port/tester.py

gaurav at macports.org gaurav at macports.org
Tue Jun 17 02:30:41 PDT 2014


Revision: 121088
          https://trac.macports.org/changeset/121088
Author:   gaurav at macports.org
Date:     2014-06-17 02:30:41 -0700 (Tue, 17 Jun 2014)
Log Message:
-----------
First line of License and = added to re.sub

Modified Paths:
--------------
    branches/gsoc14-pip2port/tester.py

Modified: branches/gsoc14-pip2port/tester.py
===================================================================
--- branches/gsoc14-pip2port/tester.py	2014-06-17 09:09:52 UTC (rev 121087)
+++ branches/gsoc14-pip2port/tester.py	2014-06-17 09:30:41 UTC (rev 121088)
@@ -211,6 +211,8 @@
         license = dict['license']
         if license and not license == "UNKNOWN":
             license = license.encode('utf-8')
+            license = license.split('\n')[0]
+            license = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`=]+',' ',license)
             file.write('license             {0}\n'.format(license))
         else:
             file.write('license             {0}\n'.format(os.getenv('license','None')))
@@ -226,7 +228,7 @@
 
         summary = dict['summary']
         if summary:
-            summary = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`]+',
+            summary = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`=]+',
                              ' ', summary)
             sum_lines = textwrap.wrap(summary)
             file.write('description         ')
@@ -243,7 +245,7 @@
         description = dict['description']
         if description:
             description = description.encode('utf-8')
-            description = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`]+', ' ', description)
+            description = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`=]+', ' ', description)
             lines = textwrap.wrap(description, width=70)
             file.write('long_description    ')
             for line in lines:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140617/772f48f9/attachment.html>


More information about the macports-changes mailing list