[123105] branches/gsoc14-pip2port/pypi2port
gaurav at macports.org
gaurav at macports.org
Tue Aug 5 04:25:07 PDT 2014
Revision: 123105
https://trac.macports.org/changeset/123105
Author: gaurav at macports.org
Date: 2014-08-05 04:25:07 -0700 (Tue, 05 Aug 2014)
Log Message:
-----------
Updated executable
Modified Paths:
--------------
branches/gsoc14-pip2port/pypi2port
Modified: branches/gsoc14-pip2port/pypi2port
===================================================================
--- branches/gsoc14-pip2port/pypi2port 2014-08-05 11:24:22 UTC (rev 123104)
+++ branches/gsoc14-pip2port/pypi2port 2014-08-05 11:25:07 UTC (rev 123105)
@@ -320,26 +320,27 @@
else:
file.write('description None\n\n')
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)
- lines = textwrap.wrap(description, width=70)
- file.write('long_description ')
- for line in lines:
- if line and lines.index(line) < 4:
- if not lines.index(line) == 0:
- file.write(' ')
- if lines.index(line) >= 3:
- file.write("{0}...\n".format(line))
- elif line == lines[-1]:
- file.write("{0}\n".format(line))
- else:
- file.write("{0} \\\n".format(line))
- else:
- file.write('long_description ${description}\n\n')
+# 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)
+# lines = textwrap.wrap(description, width=70)
+# file.write('long_description ')
+# for line in lines:
+# if line and lines.index(line) < 4:
+# if not lines.index(line) == 0:
+# file.write(' ')
+# if lines.index(line) >= 3:
+# file.write("{0}...\n".format(line))
+# elif line == lines[-1]:
+# file.write("{0}\n".format(line))
+# else:
+# file.write("{0} \\\n".format(line))
+# else:
+# file.write('long_description ${description}\n\n')
+ file.write('long_description ${description}\n\n')
home_page = dict['home_page']
if home_page and not home_page == 'UNKNOWN':
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140805/8c49d3ec/attachment.html>
More information about the macports-changes
mailing list