runtests.py: use except-as syntax

This commit is contained in:
Chris Rebert 2013-06-03 11:45:44 -06:00
parent 874194faa9
commit a6a356a3e4

View File

@ -32,7 +32,7 @@ XML_OUTPUT_DIR = os.environ.get(
try:
if SALT_ROOT:
os.chdir(SALT_ROOT)
except OSError, err:
except OSError as err:
print 'Failed to change directory to salt\'s source: {0}'.format(err)
try: