[121366] branches/gsoc14-pip2port/pypi2port
gaurav at macports.org
gaurav at macports.org
Tue Jun 24 00:10:41 PDT 2014
Revision: 121366
https://trac.macports.org/changeset/121366
Author: gaurav at macports.org
Date: 2014-06-24 00:10:40 -0700 (Tue, 24 Jun 2014)
Log Message:
-----------
Updated executable
Modified Paths:
--------------
branches/gsoc14-pip2port/pypi2port
Modified: branches/gsoc14-pip2port/pypi2port
===================================================================
--- branches/gsoc14-pip2port/pypi2port 2014-06-24 07:09:20 UTC (rev 121365)
+++ branches/gsoc14-pip2port/pypi2port 2014-06-24 07:10:40 UTC (rev 121366)
@@ -219,6 +219,7 @@
license = dict['license']
if license and not license == "UNKNOWN":
license = license.encode('utf-8')
+ license = filter(lambda x: x in string.printable, license)
license = license.split('\n')[0]
license = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`\=(--)]+', ' ', license)
license = re.sub(r'\s(\s)+', ' ', license)
@@ -261,6 +262,7 @@
description = dict['description']
if description:
description = description.encode('utf-8')
+ description = filter(lambda x: x in string.printable, description)
description = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`\=(--)]+',
' ', description)
description = re.sub(r'\s(\s)+', ' ', description)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140624/e6256107/attachment.html>
More information about the macports-changes
mailing list