[120940] branches/gsoc14-pip2port/tester.py
gaurav at macports.org
gaurav at macports.org
Thu Jun 12 00:34:40 PDT 2014
Revision: 120940
https://trac.macports.org/changeset/120940
Author: gaurav at macports.org
Date: 2014-06-12 00:34:40 -0700 (Thu, 12 Jun 2014)
Log Message:
-----------
Added utf-8 encoding
Modified Paths:
--------------
branches/gsoc14-pip2port/tester.py
Modified: branches/gsoc14-pip2port/tester.py
===================================================================
--- branches/gsoc14-pip2port/tester.py 2014-06-12 06:45:15 UTC (rev 120939)
+++ branches/gsoc14-pip2port/tester.py 2014-06-12 07:34:40 UTC (rev 120940)
@@ -226,7 +226,13 @@
# file.write('categories-append replaceme\n\n')
file.write('platforms darwin\n')
- file.write('license '+dict['license']+'\n')
+ license = dict['license']
+ if license:
+ license = license.encode('utf-8')
+ file.write('license '+license+'\n')
+ else:
+ file.write('license \n')
+
if dict['maintainer']:
file.write('maintainers ' + ' '.join(dict['maintainer']) + '\n\n')
else:
@@ -239,6 +245,7 @@
# file.write('long_description '+dict['description']+'\n\n')
description = dict['description']
if description:
+ description = description.encode('utf-8')
# description = string.replace(description,';',' ')
# description = string.replace(description,'[',' ')
# description = string.replace(description,']',' ')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140612/c0e30292/attachment.html>
More information about the macports-changes
mailing list