[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: getversion.py invalid syntax

From: Brian Neal <bgneal_at_gmail.com>
Date: Thu, 22 Mar 2012 13:07:29 -0500

The syntax

except IOError, e:

is perfectly valid in Python 2.7. Are you sure you are getting that
particular error under 2.7?

You'd have to change it to this for Python 3.x:

except IOError as e:

But that would not be backwards compatible with 2.x. Using a tool like
2to3.py may help produce a version of the script that could run under
Python 3.x.

Best,
BN
Received on 2012-03-22 19:08:01 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.