[asterisk-commits] mjordan: testsuite/asterisk/trunk r2262 - /asterisk/trunk/runtests.py
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 15 09:06:12 CDT 2011
Author: mjordan
Date: Thu Sep 15 09:06:11 2011
New Revision: 2262
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2262
Log:
Removed usage of 'as' operator for python 2.5 support
Modified:
asterisk/trunk/runtests.py
Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=2262&r1=2261&r2=2262
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Thu Sep 15 09:06:11 2011
@@ -86,9 +86,9 @@
os.makedirs(dest_dir)
os.link(ast_dir + "/messages", dest_dir + "/messages")
os.link(ast_dir + "/full", dest_dir + "/full")
- except OSError as (errno, strerror):
+ except OSError, ose:
""" Different partitions can cause this to fail """
- print "OSError occurred while copying %s ([%d]: %s)" % (ast_dir, errno, strerror)
+ print "OSError occurred while copying %s ([%d]: %s)" % (ast_dir, ose.errno, ose.strerror)
print "Attempting copy"
try:
shutil.copy(ast_dir + "/messages", dest_dir + "/messages")
More information about the asterisk-commits
mailing list