[133103] contrib/pypi2port/pypi2port.py

gaurav at macports.org gaurav at macports.org
Fri Feb 20 04:10:25 PST 2015


Revision: 133103
          https://trac.macports.org/changeset/133103
Author:   gaurav at macports.org
Date:     2015-02-20 04:10:25 -0800 (Fri, 20 Feb 2015)
Log Message:
-----------
contrib/pypi2port: Changed string formatting in print to make it more readable

Modified Paths:
--------------
    contrib/pypi2port/pypi2port.py

Modified: contrib/pypi2port/pypi2port.py
===================================================================
--- contrib/pypi2port/pypi2port.py	2015-02-20 12:03:57 UTC (rev 133102)
+++ contrib/pypi2port/pypi2port.py	2015-02-20 12:10:25 UTC (rev 133103)
@@ -146,7 +146,7 @@
 		try:
 			os.remove(file_name)
 		except OSError as e:
-			print(("Error: %s - %s." % (e.filename, e.strerror)))
+			print(("Error: {0} - {1}.".format(e.filename, e.strerror)))
 		return False
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150220/073aa9e8/attachment.html>


More information about the macports-changes mailing list