[svn-commits] russell: testsuite/asterisk/trunk r176 - /asterisk/trunk/lib/python/asterisk/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Apr 2 06:58:51 CDT 2010
Author: russell
Date: Fri Apr 2 06:58:48 2010
New Revision: 176
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=176
Log:
Use str().format()
Modified:
asterisk/trunk/lib/python/asterisk/version.py
Modified: asterisk/trunk/lib/python/asterisk/version.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/version.py?view=diff&rev=176&r1=175&r2=176
==============================================================================
--- asterisk/trunk/lib/python/asterisk/version.py (original)
+++ asterisk/trunk/lib/python/asterisk/version.py Fri Apr 2 06:58:48 2010
@@ -106,9 +106,9 @@
v = match.group(1)
f.close()
except IOError:
- print "I/O Error getting Asterisk version from %s" % path
+ print "I/O Error getting Asterisk version from {0}".format(path)
except:
- print "Unexpected error getting version from %s: %s" % (path,
+ print "Unexpected error getting version from {0}: {1}".format(math,
sys.exc_info()[0])
return v
More information about the svn-commits
mailing list