[125608] users/g5pw/pypi2port/pypi2port.py
g5pw at macports.org
g5pw at macports.org
Mon Sep 22 12:53:11 PDT 2014
Revision: 125608
https://trac.macports.org/changeset/125608
Author: g5pw at macports.org
Date: 2014-09-22 12:53:11 -0700 (Mon, 22 Sep 2014)
Log Message:
-----------
Use python3 compatible exception handling
Also, fix the last print with parentheses.
Modified Paths:
--------------
users/g5pw/pypi2port/pypi2port.py
Modified: users/g5pw/pypi2port/pypi2port.py
===================================================================
--- users/g5pw/pypi2port/pypi2port.py 2014-09-22 19:44:04 UTC (rev 125607)
+++ users/g5pw/pypi2port/pypi2port.py 2014-09-22 19:53:11 UTC (rev 125608)
@@ -115,8 +115,8 @@
print('Aborting due to inconsistency on checksums\n')
try:
os.remove(file_name)
- except OSError, e:
- print "Error: %s - %s." % (e.filename, e.strerror)
+ except OSError as e:
+ print("Error: %s - %s." % (e.filename, e.strerror))
return False
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140922/dad1bae3/attachment.html>
More information about the macports-changes
mailing list